Skip to content

Commit fd59a1f

Browse files
committed
Add support for extension host debugging
1 parent f438a18 commit fd59a1f

File tree

3 files changed

+40
-6
lines changed

3 files changed

+40
-6
lines changed

.vscode/launch.json

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,36 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5+
"name": "Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"args": [
9+
"--extensionDevelopmentPath=${workspaceFolder}",
10+
"${workspaceFolder}/sample-workspace"
11+
],
12+
"outFiles": [
13+
"${workspaceFolder}/lib/**/*.js"
14+
]
15+
},
16+
{
17+
"name": "Server",
518
"type": "node",
619
"request": "launch",
7-
"name": "Debug Server",
820
"runtimeArgs": [ "--nolazy" ],
921
"program": "${workspaceRoot}/src/index.ts",
1022
"stopOnEntry": false,
1123
"args": [ "--server=4711" ],
1224
"sourceMaps": true,
1325
"outFiles": [
14-
"${workspaceRoot}/lib/**/*.js"
26+
"${workspaceFolder}/lib/**/*.js"
1527
],
16-
"cwd": "${workspaceRoot}"
28+
"cwd": "${workspaceFolder}"
1729
}
18-
]
30+
],
31+
"compounds": [
32+
{
33+
"name": "Extension + Server",
34+
"configurations": [ "Extension", "Server" ]
35+
}
36+
]
1937
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
22
"name": "cmsis-debug-adapter",
33
"version": "1.0.0",
4+
"publisher": "Arm Mbed",
45
"description": "Debug adapter for CMSIS following the DAP protocol",
56
"author": "Rob Moran <rob.moran@arm.com>",
67
"license": "MIT",
78
"private": true,
8-
"main": "./lib/index",
9+
"main": "./lib/index.js",
910
"repository": {
1011
"type": "git",
1112
"url": "git://github.com/ARMmbed/cmsis-debug-adapter"
1213
},
1314
"engines": {
15+
"vscode": "^1.49.0",
1416
"node": ">=10.2.1"
1517
},
1618
"scripts": {
@@ -33,7 +35,6 @@
3335
"bundledDependencies": [
3436
"cdt-gdb-adapter"
3537
],
36-
"publisher": "Arm Mbed",
3738
"activationEvents": [
3839
"onDebugResolve:cmsis-debug"
3940
],

sample-workspace/.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "CMSIS Debug",
9+
"type": "cmsis-debug",
10+
"request": "launch",
11+
"gdbServer": "pyocd",
12+
// "debugServer": 4711
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)