|
@@ -0,0 +1,47 @@
|
|
|
|
|
+{
|
|
|
|
|
+ // 使用 IntelliSense 了解相关属性。
|
|
|
|
|
+ // 悬停以查看现有属性的描述。
|
|
|
|
|
+ // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
|
|
+ "version": "0.2.0",
|
|
|
|
|
+ "configurations": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "node",
|
|
|
|
|
+ "request": "launch",
|
|
|
|
|
+ "name": "启动程序",
|
|
|
|
|
+ "skipFiles": ["<node_internals>/**"],
|
|
|
|
|
+ "program": "${file}"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "name": "Electron: Main",
|
|
|
|
|
+ "type": "node",
|
|
|
|
|
+ "request": "launch",
|
|
|
|
|
+ // "protocol": "inspector",
|
|
|
|
|
+ "runtimeExecutable": "${workspaceRoot}/Sample/node_modules/.bin/electron",
|
|
|
|
|
+ "windows": {
|
|
|
|
|
+ "runtimeExecutable": "${workspaceRoot}/Sample/node_modules/.bin/electron.cmd"
|
|
|
|
|
+ },
|
|
|
|
|
+ "preLaunchTask": "electron-debug",
|
|
|
|
|
+ "args": ["--remote-debugging-port=9223", "./dist_electron"],
|
|
|
|
|
+ "outFiles": ["${workspaceFolder}/Sample/dist_electron/**/*.js"],
|
|
|
|
|
+ "cwd": "${workspaceFolder}/Sample"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "name": "Electron: Renderer",
|
|
|
|
|
+ "type": "chrome",
|
|
|
|
|
+ "request": "attach",
|
|
|
|
|
+ "port": 9223,
|
|
|
|
|
+ "urlFilter": "http://localhost:*",
|
|
|
|
|
+ "timeout": 30000,
|
|
|
|
|
+ "webRoot": "${workspaceFolder}/Sample/src",
|
|
|
|
|
+ "sourceMapPathOverrides": {
|
|
|
|
|
+ "webpack:///./Sample/src/*": "${webRoot}/*"
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ "compounds": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "name": "Electron: All",
|
|
|
|
|
+ "configurations": ["Electron: Main", "Electron: Renderer"]
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+}
|