Skip to content

Commit

Permalink
chore: add debug config for vscode (#3684)
Browse files Browse the repository at this point in the history
  • Loading branch information
chmelevskij authored Dec 20, 2023
1 parent f8f9a78 commit 7598c0a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ cordova/bundle.keystore
.DS_store

# artefacts for Visual Studio Code
/.vscode/
.vscode/*
!.vscode/launch.json

# NetBeans
nbproject/
Expand Down
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// 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": [
{
"type": "nwjs",
"request": "attach",
"name": "Attach to Betaflight",
"port": 9222,
"webRoot": "${workspaceRoot}/dist",
"sourceMaps": true,
"reloadAfterAttached": true
}
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"preview": "vite preview",
"review": "vite build && vite preview",
"start": "run-script-os",
"start:default": "NODE_ENV=development NW_PRE_ARGS=--load-extension='./node_modules/nw-vue-devtools-prebuilt/extension' gulp debug",
"start:windows": "set NODE_ENV=development && set NW_PRE_ARGS=--load-extension='./node_modules/nw-vue-devtools-prebuilt/extension' && gulp debug",
"start:default": "NODE_ENV=development NW_PRE_ARGS=\"--load-extension='./node_modules/nw-vue-devtools-prebuilt/extension' --remote-debugging-port=9222\" gulp debug",
"start:windows": "set NODE_ENV=development && set NW_PRE_ARGS=\"--load-extension='./node_modules/nw-vue-devtools-prebuilt/extension' --remote-debugging-port=9222\" && gulp debug",
"gulp": "gulp",
"release": "run-script-os",
"release:default": "NODE_ENV=production gulp release",
Expand Down

0 comments on commit 7598c0a

Please sign in to comment.