gpt4 book ai didi

electron - 如何调试 Electron 生产

转载 作者:行者123 更新时间:2023-12-03 12:21:11 32 4
gpt4 key购买 nike

我无法使用 Electron 打包程序在内置的 Electron 应用程序中打开chrome开发工具。

我已经尝试过mainWindow.webContents.openDevTools(),但这没有用。

在网上和其他SO答案上,我遇到了注释掉rendererConfig.devtool = ''webConfig.devtool = ''的问题,但这也没有什么不同。

我还尝试添加一个快捷键来打开开发工具,但这没有任何作用。

我正在使用最新版本的 Electron 。

感谢您的任何帮助。

最佳答案

我发现一种调试生产应用程序的方法是在终端使用参数--remote-debugging-port=8315运行.exe。这将允许通过在chrome中转到http://localhost:8315/进行调试。

关于electron - 如何调试 Electron 生产,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55242600/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com