Skip to content

Commit

Permalink
Add VSCode configuration for debugging purposes (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuya-oc authored and wget committed Mar 11, 2019
1 parent c4cf9d5 commit 427403a
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .vscode/extensions.json
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"
]
}
61 changes: 61 additions & 0 deletions .vscode/launch.json
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"
}
]
}
13 changes: 13 additions & 0 deletions .vscode/tasks.json
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": []
}
]
}

0 comments on commit 427403a

Please sign in to comment.