Skip to content

Commit

Permalink
Merge pull request #226 from ziqiangxu/linux
Browse files Browse the repository at this point in the history
debug config files
  • Loading branch information
elliottzheng committed Apr 4, 2020
2 parents cb8378f + f34f73e commit 9255917
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .vscode/launch.json
@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Electron: Main",
"type": "node",
"request": "launch",
"protocol": "inspector",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"preLaunchTask": "electron-debug",
"args": ["--remote-debugging-port=9223", "./dist_electron"],
"outFiles": ["${workspaceFolder}/dist_electron/**/*.js"]
},
{
"name": "Electron: Renderer",
"type": "chrome",
"request": "attach",
"port": 9223,
"urlFilter": "http://localhost:*",
"timeout": 30000,
"webRoot": "${workspaceFolder}/src",
"sourceMapPathOverrides": {
"webpack:///./src/*": "${webRoot}/*"
}
}
],
"compounds": [
{
"name": "Electron: All",
"configurations": ["Electron: Main", "Electron: Renderer"]
}
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Expand Up @@ -18,7 +18,7 @@
}
],
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.fontFamily": "Monaco",
// "editor.fontFamily": "Monaco",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
Expand Down
27 changes: 27 additions & 0 deletions .vscode/tasks.json
@@ -0,0 +1,27 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "electron-debug",
"type": "process",
"command": "./node_modules/.bin/vue-cli-service",
"windows": {
"command": "./node_modules/.bin/vue-cli-service.cmd"
},
"isBackground": true,
"args": ["electron:serve", "--debug"],
"problemMatcher": {
"owner": "custom",
"pattern": {
"regexp": ""
},
"background": {
"beginsPattern": "Starting development server\\.\\.\\.",
"endsPattern": "Not launching electron as debug argument was passed\\."
}
}
}
]
}
3 changes: 3 additions & 0 deletions vue.config.js
Expand Up @@ -71,5 +71,8 @@ module.exports = {
// 这一步还蛮重要的,不然就会报错
nodeModulesPath: ["./node_modules"]
}
},
configureWebpack: {
devtool: 'source-map'
}
};

0 comments on commit 9255917

Please sign in to comment.