-
Notifications
You must be signed in to change notification settings - Fork 849
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VSCode configuration for debugging purposes (#886)
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"msjsdiag.debugger-for-chrome" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Debug Main Process", | ||
"cwd": "${workspaceRoot}", | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", | ||
"runtimeArgs": [ | ||
"src", | ||
"--disable-dev-mode" | ||
], | ||
"windows": { | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd" | ||
}, | ||
"program": "${workspaceRoot}/src/main.js", | ||
"outFiles": [ | ||
"${workspaceRoot}/src/main_bundle.js" | ||
], | ||
"sourceMaps": true, | ||
"preLaunchTask": "Build sources" | ||
}, | ||
/* | ||
{ | ||
"name": "Debug Renderer Process", | ||
"type": "chrome", | ||
"request": "launch", | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", | ||
"windows": { | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd" | ||
}, | ||
"runtimeArgs": [ | ||
"${workspaceRoot}/src", | ||
"--disable-dev-mode", | ||
"--remote-debugging-port=9222" | ||
], | ||
"webRoot": "${workspaceRoot}/src/browser", | ||
"sourceMaps": true, | ||
"preLaunchTask": "Build sources" | ||
}, | ||
*/ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Mocha Tests", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"-r", | ||
"babel-register", | ||
"--recursive", | ||
"--timeout", | ||
"999999", | ||
"--colors", | ||
"${workspaceRoot}/test/specs" | ||
], | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"preLaunchTask": "Build sources" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build sources", | ||
"type": "npm", | ||
"script": "build", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |