WebStorm 12 EAP-JavaScript调试配置不适用于内置Web服务器 [英] WebStorm 12 EAP - JavaScript debug configuration doesn't work with built-in webserver

查看:156
本文介绍了WebStorm 12 EAP-JavaScript调试配置不适用于内置Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建新的JavaScript调试配置后,我试图使用内置的WebStorm服务器开始调试会话.我正在使用这个项目:

https://github.com/pauldessert/SeedTip.git

我遇到了这个奇怪的问题,我在本地引用的所有.css.js文件:

 <link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/map.js"></script>
<script src="js/search.js"></script>
 

...无法被浏览器找到/加载.当我按F12键查看Chrome Dev工具(此操作似乎断开了WebStorm IDE支持扩展的连接)时,我在下面的图片中显示了此消息,并且您可以看到失败的请求.

您可以在WebStorm的控制台工具窗口中看到对.css和.js本地文件的获取请求.当我按下这些链接中的任何一个时,它将在我的Chrome浏览器中打开确定.

例如该文件确实存在:

http://localhost:63342/SeedTip/css/style.css

当我使用外部节点服务器时,例如grunt-serv并使用以下URL创建JS调试配置:URL http://localhost:9000/index.html指向: F:\Projects\Angular\v2\SeedTip并运行此调试程序即可.

注意:我在启用Angular 2应用程序以systemjs加载时遇到相同的问题. 我尝试设置,但无济于事.

解决方案

我是一个已知的错误,已在最新版本中修复.

I am trying to start debugging session using built-in WebStorm server after I created a new JavaScript debug configuration. I am using this project:

https://github.com/pauldessert/SeedTip.git

I am experiencing this weird problem that all of my locally referenced .css and .js files:

<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/map.js"></script>
<script src="js/search.js"></script>

...could not be found/loaded by the browser. I show this in bellow image when I pressed F12 to see Chrome Dev tools (this action seems to disconnect WebStorm IDE support extension) and you can see failed requests.

You can see in the console tool window in WebStorm that there were get request for .css and .js local files. When I press any of these links it opens ok in my Chrome browser.

E.g. this file does exist:

http://localhost:63342/SeedTip/css/style.css

When I use an external node server e.g. grunt-serve and create JS debug configuration with URL: http://localhost:9000/index.html pointing to: F:\Projects\Angular\v2\SeedTip and run this debug it works.

Note: I have the same problem with enabling Angular 2 apps to load with systemjs. I tried setting but it doesn't help.

解决方案

I was a known bug, that was fixed in the latest build.

这篇关于WebStorm 12 EAP-JavaScript调试配置不适用于内置Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆