[英]Cannot Debug Electron JS application in VSCode
I am trying to develop a sample application for learning electron JS. 我正在尝试开发一个学习电子JS的示例应用程序。 But unfortunately for me, the node debugger is not working for this particular project. 但不幸的是,对我来说,节点调试器不适用于这个特定的项目。
But when I tried debugging electron-quick-start app it works, we can see the call stack and all. 但是,当我尝试调试电子快速启动应用程序时,我们可以看到调用堆栈和所有。
lunch.json looks like this lunch.json看起来像这样
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process2",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"program": "${workspaceRoot}/main.js",
"diagnosticLogging": true
}
]
}
I am running on Linux machine with Node v7.4.0. 我在使用Node v7.4.0的Linux机器上运行。
The error message I am getting on CALL STACK tab is No Call stack available(vscode_backtrace:Internal error: TypeError: undefined is not a function)
我在CALL STACK选项卡上获得的错误消息是No Call stack available(vscode_backtrace:Internal error: TypeError: undefined is not a function)
Please help me to resolve this. 请帮我解决这个问题。
I was facing the same problem and had put a post on atom discussion group. 我遇到了同样的问题,并在原子讨论小组上发了一篇文章。 Fortunately, I figured out a way to do so. 幸运的是,我找到了一种方法。 You can find the solution here: 你可以在这里找到解决方案:
https://discuss.atom.io/t/debugging-electron-api-demo-using-visual-studio-code/40661 https://discuss.atom.io/t/debugging-electron-api-demo-using-visual-studio-code/40661
Hope it helps! 希望能帮助到你!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.