如何使用 IntelliJ 或 WebStorm 调试电子应用程序? [英] How to debug electron applications with IntelliJ or WebStorm?
本文介绍了如何使用 IntelliJ 或 WebStorm 调试电子应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 IntelliJ 作为开发工具,我想知道如何调试
I'm using IntelliJ as development tool and I wanted to know how to debug an Electron application?
I'm aware there is a standard way to debug Electron applications, but this method is done outside of my IDE.
I've tried to create a new "Node.js" "Run/Debug Configuration" using:
- Node interpreter:
<path to node>
- Working directory:
<path to my application root folder>
- JavaScript file:
node_modules/.bin/electron
- Application parameters:
.
With this settings, my application starts, but if I put a breakpoint in my main.js
the application never stops on the breakpoint (= debugging doesn't work).
解决方案
This is how I set it up, and it worked great. I then just put my break points inside of webstorm and it just works.
In webstorm create a new runtime configuration that looks like this.
这篇关于如何使用 IntelliJ 或 WebStorm 调试电子应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文