简体   繁体   English

调试Node.js应用程序时WebStorm在错误的文件上停止

[英]WebStorm stops on wrong file when debugging a Node.js application

I'm trying to debug a Node.js app that runs on a remote server (on my local network). 我正在尝试调试在远程服务器(在我的本地网络上)上运行的Node.js应用程序。 Node is ran with --debug=7000 and WebStorm can connect to it without any problem. 使用--debug=7000运行节点,WebStorm可以毫无问题地连接到该节点。

My app depends on a few Node.js modules, and some of them contain index.js files, as well as my app. 我的应用程序依赖于一些Node.js模块,其中一些包含index.js文件以及我的应用程序。

When I set a breakpoint in the index.js of my app (I mean: a file I have written, not a one inside modules), WebStorm does not stop on it, but stops on every index.js that is being executed before mine, which is very (very) annoying... 当我在应用程序的index.js中设置断点时(我的意思是:我编写的文件,而不是模块内部的一个文件),WebStorm不会在其上停止,而是在我之前执行的每个index.js上停止,这非常(非常)烦人...

Did someone encounter the same issue? 有人遇到过同样的问题吗? And did someone find a solution? 有人找到解决方案了吗?

Thank you very much! 非常感谢你!

已知错误,请按照WEB-12265进行更新

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM