【问题标题】:How to debug an iframe/webview in electron framework如何在电子框架中调试 iframe/webview 【发布时间】:2019-06-22 11:12:46 【问题描述】: 我在电子框架中有 webview/iFrame。我想调试 iFrame 中的代码。 如图所示,我使用调试器窗口启动电子应用程序。 我想调试加载的内容。 【问题讨论】: 标签: iframe electron 【解决方案1】: 在您的渲染器脚本中,获取 webview 并打开其开发工具。您正在打开包含 web 视图的渲染器的开发工具。 document.querySelector("webview").openDevTools(); Source 【讨论】: