javascript - Electron 中的“断点设置但未绑定”问题
问题描述
VSC:1.42.1
电子:8.0.3
macOS:10.14.5
节点:11.15.0
尝试在 中调试renderer
进程时Electron
,由于“已设置断点但未绑定”问题,不会触发任何断点。
渲染器中的断点在 VSC 5 或 6 版本之前工作,然后在更新中中断。我一直在如此,VSC github“问题”页面,没有一个例子有帮助。VSC调试不能为每个人打破。
我的项目结构如下所示,我正在使用的启动配置也是如此。
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Electron: Main",
"protocol": "inspector",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"runtimeArgs": [
"--remote-debugging-port=9223",
"."
],
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
}
},
{
"name": "Electron: Renderer",
"type": "chrome",
"request": "attach",
"port": 9223,
"webRoot": "${workspaceFolder}",
"timeout": 30000
}
],
"compounds": [
{
"name": "Electron: All",
"configurations": [
"Electron: Main",
"Electron: Renderer"
]
}
]
}
解决方案
推荐阅读
- android - 类 Result 需要一种类型参数
- machine-learning - 是否可以通过 CPU 多处理来拟合 Keras 模型?
- angular - 哪个是为 Angular 应用程序执行谷歌分析的最佳 npm 包?
- laravel - 如何使用 laravel 获取 Camscanner 生成的元数据 PDF 文件?
- python - Django:Choices 和 Foreign Fields 未在表单上呈现
- android - 使用 Navigation (jetpack) 组件时向当前导航的 Android Fragment 发送参数,而不再次调用所有生命周期方法?
- laravel - 路线 solr/admin/info/system 不存在但给出错误 RouteCollection Laravel 5.5
- c# - MS Visual Studio - 如何从文件系统导入项目或解决方案并知道它是什么类型的项目
- azure - 天蓝色 | Rest API 的令牌
- python - 是否有使用特殊类方法访问多维列表的 Pythonic 范例?