Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b54c364

Browse files
committedOct 20, 2022
Show CHIP app selector when staring Linux debugger
1 parent e62498b commit b54c364

File tree

3 files changed

+18
-24
lines changed

3 files changed

+18
-24
lines changed
 

‎.devcontainer/devcontainer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@
3131
"esbenp.prettier-vscode",
3232
"foxundermoon.shell-format",
3333
"github.vscode-pull-request-github",
34-
"knisterpeter.vscode-github",
3534
"maelvalais.autoconf",
3635
"marus25.cortex-debug",
3736
"ms-azuretools.vscode-docker",
3837
"msedge-dev.gnls",
39-
"npclaudiu.vscode-gn",
4038
"redhat.vscode-yaml",
39+
"vadimcn.vscode-lldb",
4140
"xaver.clang-format",
4241
"yuichinukiyama.vscode-preview-server",
4342
"yzhang.markdown-all-in-one"

‎.vscode/extensions.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
"esbenp.prettier-vscode",
1313
"foxundermoon.shell-format",
1414
"github.vscode-pull-request-github",
15-
"knisterpeter.vscode-github",
1615
"maelvalais.autoconf",
1716
"marus25.cortex-debug",
1817
"ms-azuretools.vscode-docker",
1918
"msedge-dev.gnls",
20-
"npclaudiu.vscode-gn",
2119
"redhat.vscode-yaml",
20+
"vadimcn.vscode-lldb",
2221
"xaver.clang-format",
2322
"yuichinukiyama.vscode-preview-server",
2423
"yzhang.markdown-all-in-one"

‎.vscode/launch.json

+16-20
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
"request": "attach",
1111
"pid": "${command:pickProcess}"
1212
},
13+
{
14+
"name": "Run application (Linux x64)",
15+
"type": "lldb",
16+
"request": "launch",
17+
"program": "${input:outAppLinux}",
18+
"args": [],
19+
"cwd": "${workspaceFolder}"
20+
},
1321
{
1422
"name": "QRCode Tests",
1523
"type": "cppdbg",
@@ -70,26 +78,6 @@
7078
}
7179
]
7280
},
73-
{
74-
"name": "LightingApp (Linux)",
75-
"type": "cppdbg",
76-
"request": "launch",
77-
"program": "${workspaceFolder}/out/lighting-app/chip-lighting-app",
78-
"args": [],
79-
"stopAtEntry": false,
80-
"cwd": "${workspaceFolder}",
81-
"environment": [],
82-
"externalConsole": false,
83-
"MIMode": "gdb",
84-
"preLaunchTask": "Build Lighting App (Linux)",
85-
"setupCommands": [
86-
{
87-
"description": "Enable pretty-printing for gdb",
88-
"text": "-enable-pretty-printing",
89-
"ignoreFailures": true
90-
}
91-
]
92-
},
9381
{
9482
"name": "LightingApp (Tizen) [remote]",
9583
"type": "cppdbg",
@@ -423,6 +411,14 @@
423411
}
424412
],
425413
"inputs": [
414+
{
415+
"type": "command",
416+
"id": "outAppLinux",
417+
"command": "shellCommand.execute",
418+
"args": {
419+
"command": "find ${workspaceFolder}/out/linux-x64-* -maxdepth 2 -executable -name 'chip-*'"
420+
}
421+
},
426422
{
427423
"type": "pickString",
428424
"id": "mbedDebugProfile",

0 commit comments

Comments
 (0)
Please sign in to comment.