JetBrains WebStorm调试器不';升级7.0.1和7.0.2后无法工作
具有此结构的角度项目:JetBrains WebStorm调试器不';升级7.0.1和7.0.2后无法工作,webstorm,jetbrains-ide,Webstorm,Jetbrains Ide,具有此结构的角度项目: project name: --/app folder --/app/index.html 在目录/设置中,我将项目名称设置为内容源,将app文件夹设置为资源文件夹。URL设置为:http://localhost:63342/app/index.html 我安装了chrome插件,但当我运行调试器时,我看到“404页面未找到”消息 如果我将url设置为http://localhost:63342/angular/index.html(通过选择index.html文件)我
project name:
--/app folder
--/app/index.html
在目录/设置中,我将项目名称设置为内容源,将app
文件夹设置为资源文件夹。URL设置为:http://localhost:63342/app/index.html
我安装了chrome插件,但当我运行调试器时,我看到“404页面未找到”消息
如果我将url设置为http://localhost:63342/angular/index.html
(通过选择index.html文件)我确实获得了该页面,但没有任何资源,存在此类错误(例如,图像、模板等)
它们都应该在app
文件夹下,但在调试页面中丢失(我运行的常规页面工作正常..)
我听说有一些“插件配置”可以覆盖CORS。但我不确定是什么
另一个问题是,我需要应用程序从local.mycompany.com
运行,而不是从localhost(在我的机器中,它是在hosts文件中设置的,工作正常),但当我尝试将调试器url设置为http://local.mycompany.com:63342/angular/index.html
我刚看到jetbrains 404页面。1)当使用内置的简单web服务器时,URL应采用以下格式:http://localhost:63342/PROJECT_NAME/the_rest_of_path
(顺便说一句,当使用“在浏览器中打开”操作时,它由IDE自动生成)。备选URL为http://PROJECT_NAME:63342/the_rest_of_path
和PROJECT\u NAME
必须通过主机
文件或本地DNS服务器指向127.0.0.1。2)如果要使用自定义域(http://local.mycompany.com
)然后您必须使用自己的web服务器(Apache/nginx/IIS等)。3)“…我确实获得了页面,但没有任何资源,…”当使用带有第一种URL类型的内置web服务器(其中项目名称是路径的一部分,而不是域名)时,所有资源都应该以相对格式AFAIK引用(即img/image.png
而不是/img/image.png
——请注意没有前导斜杠)。使用备选URL(项目名称作为域名)时,即使使用前导斜杠也应能正常工作。
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/img/home_page_1024.jpg
Failed to load resource: the server responded with a status of 404 (Not Found)