Skip to content
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

git工程以后完成准备工作,在vscode上直接调试,主进程可以正常打断点,加载渲染进程后就会出现白屏 返回(node:36548) electron: Failed to load URL: http://127.0.0.1:3344/ with error: ERR_CONNECTION_REFUSED #519

Open
BruceResp opened this issue Dec 11, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@BruceResp
Copy link

Describe the problem you confuse

OS: 家庭版 WIN11 24H2

使用的工程模板:
https://github.com/electron-vite/electron-vite-vue

1.已经下载过 JavaScript Debugger (Night)插件

做过的操作:按照README 中 Quick Setup的操作进行的,只是用的指令是cnpm不是npm 并没有修改任何东西

现象:

image
在主进程 ..\electron-vite-vue-main\electron\main\index.ts 中打断点可以进入,后面加载一会儿
image
就会直接直接白屏如下图所示
image

并且返回报错
(node:25524) electron: Failed to load URL: http://127.0.0.1:3344/ with error: ERR_CONNECTION_REFUSED

使用脚本进行调试,可以正常打断点到主进程,并且也能显示渲染进程但是不能在渲染进程(在HelloWorld.vue)中打断点,只能在devtool里进行调试
image
image

试了好几个别的工程模板在调试的时候也是有同样问题,新人入坑,求指教 。

@BruceResp BruceResp added the help wanted Extra attention is needed label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant