如何在node NW中使用devtool?

How to use devtool in node NW?

Devtool、工具栏和其他功能已从 nw 0.13.* 中删除。
如何在当前版本中使用开发工具?

我创建了一个使用 nw 0.12.1 的 nw 项目。我决定将它升级到当前版本,然后,缺少所需的工具。

有关于 devtools in nw

的文档

open DevTools programmatically using NW.js API win.showDevTools()

或者...

Remote Debugging

You can use the --remote-debugging-port=port command line option to specify which port the DevTools should listen to. For example, by running nw --remote-debugging-port=9222, you can open http://localhost:9222/ in your browser to visit the debugger remotely.

在nwjs 69.0.3497.100中,按F12

即可
<script>
  require('nw.gui').Window.get().showDevTools();
</script>

这将适用于 NW.js 的所有版本。