Skip to content

Commit

Permalink
Show CHIP app selector when staring Linux/Darwin debugger (#23274)
Browse files Browse the repository at this point in the history
* Show CHIP app selector when staring Linux debugger

* Add run application for Darwin hosts
  • Loading branch information
arkq authored and pull[bot] committed Jan 6, 2023
1 parent 1a7925d commit 4940738
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@
"esbenp.prettier-vscode",
"foxundermoon.shell-format",
"github.vscode-pull-request-github",
"knisterpeter.vscode-github",
"maelvalais.autoconf",
"marus25.cortex-debug",
"ms-azuretools.vscode-docker",
"msedge-dev.gnls",
"npclaudiu.vscode-gn",
"redhat.vscode-yaml",
"vadimcn.vscode-lldb",
"xaver.clang-format",
"yuichinukiyama.vscode-preview-server",
"yzhang.markdown-all-in-one"
Expand Down
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
"esbenp.prettier-vscode",
"foxundermoon.shell-format",
"github.vscode-pull-request-github",
"knisterpeter.vscode-github",
"maelvalais.autoconf",
"marus25.cortex-debug",
"ms-azuretools.vscode-docker",
"msedge-dev.gnls",
"npclaudiu.vscode-gn",
"redhat.vscode-yaml",
"vadimcn.vscode-lldb",
"xaver.clang-format",
"yuichinukiyama.vscode-preview-server",
"yzhang.markdown-all-in-one"
Expand Down
54 changes: 34 additions & 20 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@
"request": "attach",
"pid": "${command:pickProcess}"
},
{
"name": "Run application (Darwin x64)",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/out/${input:outAppDarwin}",
"args": [],
"cwd": "${workspaceFolder}"
},
{
"name": "Run application (Linux x64)",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/out/${input:outAppLinux}",
"args": [],
"cwd": "${workspaceFolder}"
},
{
"name": "QRCode Tests",
"type": "cppdbg",
Expand Down Expand Up @@ -70,26 +86,6 @@
}
]
},
{
"name": "LightingApp (Linux)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/out/lighting-app/chip-lighting-app",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "Build Lighting App (Linux)",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "LightingApp (Tizen) [remote]",
"type": "cppdbg",
Expand Down Expand Up @@ -423,6 +419,24 @@
}
],
"inputs": [
{
"type": "command",
"id": "outAppDarwin",
"command": "shellCommand.execute",
"args": {
"command": "find ${workspaceFolder}/out/darwin-x64-* -maxdepth 2 -perm +111 -name 'chip-*' |sort |sed 's$${workspaceFolder}/out/$$'",
"description": "Select the application to run"
}
},
{
"type": "command",
"id": "outAppLinux",
"command": "shellCommand.execute",
"args": {
"command": "find ${workspaceFolder}/out/linux-x64-* -maxdepth 2 -executable -name 'chip-*' |sort |sed 's$${workspaceFolder}/out/$$'",
"description": "Select the application to run"
}
},
{
"type": "pickString",
"id": "mbedDebugProfile",
Expand Down

0 comments on commit 4940738

Please sign in to comment.