【发布时间】:2017-07-17 02:03:11
【问题描述】:
半小时以来,我一直在研究电子快速入门教程。就像文档告诉我的那样,我创建了这样的文件结构:
- package.json
- main.js
- index.html
从文档出发,我对 launch.json 进行了更改,以使我的项目在 Visual Studio Code 中以 F5 开始:
"type": "node",
"request": "launch",
"name": "Programm starten",
"program": "${workspaceRoot}/main.js",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"runtimeArgs": [
"--enable-logging"
]
我的 oncklick() 函数驻留在 index.js 中,在 index.html 中引用:
<script src="index.js"></script>
一切都很好,但是如何让我的 index.js 断点在 VSC 中工作? Main.js 断点应该停止。
谢谢 皮克斯
【问题讨论】:
标签: javascript visual-studio-code electron