Skip to content

Commit

Permalink
fix(debug): vscode debugging main process failed (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 committed Sep 7, 2021
1 parent 833a008 commit 097188e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
},
"args": ["--enable-logging", "--inspect=5859", "./dist/main.js"],
"preLaunchTask": {
"type": "npm",
"script": "build:debug"
}
"preLaunchTask": "npm: build:debug - desktop/main-app"
}
]
}
13 changes: 13 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "build:debug",
"path": "desktop/main-app/",
"group": "build",
"label": "npm: build:debug - desktop/main-app",
"detail": "cross-env FLAT_DEBUG=debug webpack --config webpack/webpack.debug.js"
}
]
}

0 comments on commit 097188e

Please sign in to comment.