Skip to content

Commit

Permalink
Figure out how to get F5 debugging working
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
neilenns committed May 15, 2024
1 parent f0e7f0e commit 48fc81a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"paulober.rollup-problem-matcher",
"davidanson.vscode-markdownlint"
]
}
7 changes: 4 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Plugin",
"name": "Debug plugin",
"type": "node",
"request": "attach",
"processId": "${command:PickProcess}",
"port": 54545,
"outFiles": [
"${workspaceFolder}/bin/**/*.js"
],
"resolveSourceMapLocations": [
"${workspaceFolder}/**"
]
],
"preLaunchTask": "npm: watch"
}
]
}
17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": true,
"problemMatcher": "$rollup-ts-watch",
"label": "npm: watch",
"detail": "rollup -c -w --watch.onEnd=\"streamdeck restart com.neil-enns.trackaudio\""
}
]
}
2 changes: 2 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ in conjunction with websockets to read and display data from another app. Here a
* `eslint` is used with strict TypeScript rules to validate the code
* `markdownlint` is used to validate the markdown files
* Automated CI/CD builds are handled with GitHub workflows in the `.github/workflows` folder. This includes automatically setting the plugin version to the GitHub release version and attaching the built plugin package to the pull request and release page.
* F5 debugging in Visual Studio Code using `.vscode/launch.json` and `.vscode/tasks.json` configuration files.
* Suggested Visual Studio Code extensions using a workspace file.
2 changes: 1 addition & 1 deletion com.neil-enns.trackaudio.sdPlugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
],
"Nodejs": {
"Version": "20",
"Debug": "enabled"
"Debug": "--inspect=127.0.0.1:54545"
},
"UUID": "com.neil-enns.trackaudio"
}

0 comments on commit 48fc81a

Please sign in to comment.