Skip to content

Commit

Permalink
Add support for extension host debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
thegecko committed Oct 1, 2021
1 parent f438a18 commit fd59a1f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 6 deletions.
26 changes: 22 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,36 @@
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"${workspaceFolder}/sample-workspace"
],
"outFiles": [
"${workspaceFolder}/lib/**/*.js"
]
},
{
"name": "Server",
"type": "node",
"request": "launch",
"name": "Debug Server",
"runtimeArgs": [ "--nolazy" ],
"program": "${workspaceRoot}/src/index.ts",
"stopOnEntry": false,
"args": [ "--server=4711" ],
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/lib/**/*.js"
"${workspaceFolder}/lib/**/*.js"
],
"cwd": "${workspaceRoot}"
"cwd": "${workspaceFolder}"
}
]
],
"compounds": [
{
"name": "Extension + Server",
"configurations": [ "Extension", "Server" ]
}
]
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"name": "cmsis-debug-adapter",
"version": "1.0.0",
"publisher": "Arm Mbed",
"description": "Debug adapter for CMSIS following the DAP protocol",
"author": "Rob Moran <[email protected]>",
"license": "MIT",
"private": true,
"main": "./lib/index",
"main": "./lib/index.js",
"repository": {
"type": "git",
"url": "git://github.com/ARMmbed/cmsis-debug-adapter"
},
"engines": {
"vscode": "^1.49.0",
"node": ">=10.2.1"
},
"scripts": {
Expand All @@ -33,7 +35,6 @@
"bundledDependencies": [
"cdt-gdb-adapter"
],
"publisher": "Arm Mbed",
"activationEvents": [
"onDebugResolve:cmsis-debug"
],
Expand Down
15 changes: 15 additions & 0 deletions sample-workspace/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// 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",
"configurations": [
{
"name": "CMSIS Debug",
"type": "cmsis-debug",
"request": "launch",
"gdbServer": "pyocd",
// "debugServer": 4711
}
]
}

0 comments on commit fd59a1f

Please sign in to comment.