咕噜服务器和WebStorm JavaScript调试(和SpyJS)不工作服务器、工作、JavaScript、WebStorm

2023-09-13 05:04:39 作者:不悔

我有一个应用程序,我做自耕农,咕噜的角度JS(典型设置 - 包括下面的图像)。我想我的调试与spyjs(甚至常规的JavaScript调试)项目,但我似乎无法得到它的工作当我运行咕噜服务 - 这是来自WebStorm明确加载该文件通过咕噜服务器不会(但本地主机:63343代替)。任何想法我如何正确配置的东西拿到调试工作?

I have an app that I made with yeoman, grunt an angular JS (typical setup - image included below). I'm trying to debug my project with spyjs (or even regular javascript debugging) but I can't seem to get it working when I run "grunt serve" - the file that's loaded from WebStorm clearly isn't going through the grunt server (but localhost:63343 instead). Any ideas how I could configure things properly to get debugging to work?

下面是我的SpyJS配置:

Here's my SpyJS configuration:

我也试过本地主机:9000的URL跟踪(这是咕噜服务上运行的端口),我已经使用其他节点间preTER试图

I've also tried localhost:9000 for the URL to trace (which is the port that grunt serve runs on), and I've tried using another node interpreter.

推荐答案

我使用过的约曼发电机(AngularJs +咕噜),和我调试使用这样的JavaScript的调试配置应用程序:看看这个帖子有关如何使用调试的IntelliJ angularJS(它应该工作太为网络风暴)

I am using too the Yeoman generator (AngularJs + grunt), and I am debugging the application using the JavaScript Debug configuration like this: Have a look to this post about how to debug angularJS with Intellij (It should work too for web storm)