'Failed to load resource' when trying to debug javascript

I am trying to get javascript debugging working using chrome. I have the extension enabled and live edit works.

Here are my steps when working with local files:
1) open webstorm, choose "create new project from existing files"
2) select "Source files are in a local directory, no web server is yet configured"
3) navigate to the root folder of my project and click the "project root" button, click finish.
4) go to "edit configurations" in the top menu dropdown, click + select "javascript debug > local"
5) give it a name, choose path, click apply, and ok
6) set a breakpoint in js file.
7) go to html file, right click, and choose debug.
8) at this point the console in webstorm shows: Failed to load resource    file:///my/path/index.htm:0
The browser window in chrome shows both the '"Jetbrains IDE Support" is debugging this task popup', and chrome "this webpage is not found" modal.
9) at this point, if I click on the open html file in webstorm again, the bubble with browser logos pops up on the right, I can click the chrome symbol and have the page load correctly in chrome, no problem. It is just when trying to debug javascript that I seem to have this issue.
Can anyone let me know what I'm missing or doing wrong? thanks

5 comments
Comment actions Permalink

Hello!

can you attach the screenshot of your run configuretion plus screenshots of webstorm console and the browser at step 8?
What WebStorm version do you use, on what OS?

Best regards,
Lena

0
Comment actions Permalink

Thanks for clearing this up!
This is a known issue, http://youtrack.jetbrains.com/issue/WEB-7092
The problem sems to only occur when creating run configuration from file right-click menu (Create 'index.html'/Debug 'index.html' actions). Editing run configuration manually by selecting a path using the Browse button should help

Best regards,
Lena

0
Comment actions Permalink

thanks Lena, actually selecting the path via browse was what I did initially, so that doesn't help. It still creates the "%20" when you do that. But knowing that the issue was caused by a space, I was able to remove spaces in the directory name and get it working.

0
Comment actions Permalink

I think you did it initially for your manually created 'testing' run configuration. But then you started debugging from the right-click menu of your index.html; as a result a new run configuration was created ('index.html') - that was actually used for debugging. This is what I can see from your screenshots - you have 2 run configurations, one is created manually and another one - automatically, and the latter one is used for debugging...
The bug has been fixed already, the fix will be available in WebStorm 7


Best regards,
Lena

0

Please sign in to leave a comment.