| // To run the configurations in this file, see |
| // https://fuchsia.googlesource.com/flutter-embedder/+/refs/heads/main/docs/debugging.md#attaching-a-debugger-from-vscode. |
| { |
| // Use IntelliSense to learn about possible attributes. |
| // Hover to view descriptions of existing attributes. |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| "version": "0.2.0", |
| "inputs": [ |
| // Prompts the user for what example they want to run. |
| { |
| "id": "example-name", |
| "default": "hello_flutter", |
| "description": "Which example component to build and run.", |
| "type": "pickString", |
| "options": [ |
| "hello_flutter", |
| "animation_example", |
| ] |
| }, |
| // Prompts the user to optionally build with a custom Flutter Engine. |
| { |
| "id": "with-engine-flag", |
| "default": "", |
| "description": "Whether to build with a custom Flutter Engine or not.", |
| "type": "pickString", |
| "options": [ |
| { |
| "label": "with-flutter-engine GOMA (see making_engine_changes.md)", |
| "value": " --with-engine --goma" |
| }, |
| { |
| "label": "with-flutter-engine (see making_engine_changes.md)", |
| "value": " --with-engine", |
| }, |
| { |
| "label": "without-flutter-engine", |
| "value": "", |
| }, |
| ], |
| }, |
| // Prompts the user to optionally build with a custom Fuchsia platform. |
| { |
| "id": "with-fuchsia-flag", |
| "default": "", |
| "description": "Whether to build with a custom Fuchsia or not.", |
| "type": "pickString", |
| "options": [ |
| { |
| "label": "with-fuchsia (see testing_fuchsia_changes.md)", |
| "value": " --with-fuchsia", |
| }, |
| { |
| "label": "without-fuchsia", |
| "value": "", |
| }, |
| ] |
| }, |
| ], |
| "configurations": [ |
| { |
| "name": "Launch(zxdb)", |
| "type": "zxdb", |
| "request": "launch", |
| "launchCommand": "${env:FUCHSIA_EMBEDDER_DIR}/scripts/build_and_run_example.sh ${input:example-name}${input:with-fuchsia-flag}${input:with-engine-flag} --log", |
| "process": "embedder", |
| // Kill the terminal log when the user stops debugging. |
| "postDebugTask": "terminateTask", |
| }, |
| ], |
| } |