我想在 IntelliJ 中调试 Meteor 应用程序的 javascript 代码。
我阅读了以下教程中的说明:
http://www.jetbrains.com/idea/webhelp/running-and-debugging-node-js.html
http://wiki.jetbrains.net/intellij/Remote_JavaScript_debugging_with_WebStorm_and_PHPStorm
第一个教程解释了调试 Node.js 应用程序。第二个教程解释了调试 JavaScript 应用程序。
有人可以解释一下如何在 Intellij 中调试 Meteor 应用程序吗?
最佳答案
有一条指令here (请添加您的投票)但问题是您每次进行更改时都需要重新启动调试器,因为meteor会重新启动nodejs进程。
使用“NODE_OPTION="--debug"”启动应用程序允许您在“node-inspector”中进行调试,但具有相同的限制(每次更改后重新启动)。 instructions here
我使用 IntelliJ 的经验是,即使每次重新启动,JavaScript 调试器也将很难重新连接。我使用 IntelliJ 进行开发,但是 node-inspector用于调试。
关于javascript - 如何在 IntelliJ 中调试 Meteor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17815859/