-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用vscode调试main进程可以attach debugger但是断点处不停 #52
Comments
我参考了你的方案可以调试了。感谢 下面是我的launch.js { |
好的,感谢回复。
之前main进程的调试不稳定,我再按照你修改的文件调试下。多谢了。
从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送
发件人: ***@***.***>
发送时间: 2023年2月23日 23:08
收件人: ***@***.***>
抄送: ***@***.***>; ***@***.***>
主题: Re: [umbrella22/electron-vite-template] 使用vscode调试main进程可以attach debugger但是断点处不停 (Issue #52)
我参考了你的方案可以调试了。感谢
index.ts加上nodejs的source-map应该就可以了
import sourceMapSupport from "source-map-support";
sourceMapSupport.install();
下面是我的launch.js
{
// 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",
"compounds": [
{
"name": "Debug App",
"configurations": [
"Debug Main Process",
"Debug Renderer Process"
],
}
],
"configurations": [
{
"name": "Debug Main Process",
"type": "node-terminal",
"request": "launch",
"command": "yarn run dev",
"cwd": "${workspaceFolder}",
},
{
"name": "Debug Renderer Process",
"port": 9223,
"request": "attach",
"type": "chrome",
"timeout": 60000,
"skipFiles": [
"<node_internals>/",
"${workspaceRoot}/node_modules/",
"${workspaceRoot}/dist-electron/**"
]
},
]
}
―
Reply to this email directly, view it on GitHub<#52 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQAT6ENBA4XGHGA3MW4USX3WY54QDANCNFSM5WRAX4BQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
配置了launch.json, 使用vscode调试渲染进程正常,但是调试主进程虽可以attach debugger但是无法在断点处停止?期待解决
The text was updated successfully, but these errors were encountered: