Visual studio code 如何用VS代码调试Quasar Electron应用程序
我很难配置vs代码来调试electron应用程序。 我试图做的是使用Visual studio code 如何用VS代码调试Quasar Electron应用程序,visual-studio-code,electron,quasar-framework,Visual Studio Code,Electron,Quasar Framework,我很难配置vs代码来调试electron应用程序。 我试图做的是使用-d选项构建项目以生成调试() 然后使用以下vscode启动配置: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/f
-d
选项构建项目以生成调试()
然后使用以下vscode启动配置:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"name": "Electron Main",
// "preLaunchTask": "npm: quasar build -m electron",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"args" : ["."],
"outputCapture": "std",
"program": "${workspaceFolder}/dist/electron/UnPackaged/electron-main.js"
}
]
}
这不管用。程序启动,但每个断点都“未验证”,并且未命中。可能是因为,据我所知,类星体使用巴别塔来传输文件或类似的东西。我想我错过了一些配置。有什么办法可以调试它吗 您是否尝试过
“args”:[“,”-d“]
?我不确定“unverified”是什么意思,但它看起来不像是在传递调试参数unverified意味着断点在vs代码中变灰了,并且没有命中。我还没试过那些ARG。行@JoãoMenighin,我不熟悉类星体。但是,使用此配置,您只能调试主进程中运行的代码。如果代码在渲染器进程中运行,则必须使用chrome开发工具。vscode断点永远不会命中。您是否尝试过“args”:[“,”-d“]
?我不确定“unverified”是什么意思,但它看起来不像是在传递调试参数unverified意味着断点在vs代码中变灰了,并且没有命中。我还没试过那些ARG。行@JoãoMenighin,我不熟悉类星体。但是,使用此配置,您只能调试主进程中运行的代码。如果代码在渲染器进程中运行,则必须使用chrome开发工具。vscode断点永远不会命中。