This Question is Not Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
6 Replies Last post: Mar 5, 2013 8:17 PM by Jon Fabris  
Jon Fabris Newbie 8 posts since
Feb 24, 2013
Currently Being Moderated

Feb 24, 2013 1:10 AM

Newbie needs help setting up debugging Webstorm

I am an experienced programmer, but inexperienced in the world of web servers and web programming.

 

I am running Windows 7.

 


I would like to be able to have my files on my local drive and debug through WebStorm.

I was able to create a html5 boilerplate project, then replace the files created with my own html and js files.

When I try to debug through firefox (I have the JetBrains extension installed) I get a not well formed error on the json file that my javascript is trying to read in.

 

not well-formed    D:/Flash Code/3CISD/code/minigames/Fruit/FruitJS/resources/fruitsettings.json:1

 

The file is ok, I suspect I get the error because its a local file and its really a security issue.

 

I can run this code locally by running the node.js http-server.

For that to work I run the http-server at the folder where my index.html file is, then type in  localhost:8080 in the browser window.

 

How can I make WebStorm work with http-server?

 

I tried fiddling with Run/Debug Configurations but I am not familiar enough with all the buzzwords to make it work.

Vladimir Krivosheev Novice 211 posts since
Mar 3, 2007
Currently Being Moderated
Feb 27, 2013 7:15 PM in response to: Jon Fabris
Re: Newbie needs help setting up debugging Webstorm

Please see http://bit.ly/XGaiBG

 

Create a debug configuration of the type JavaScript Debug - Remote, set url to http://localhost:8080/index.html

Andriy Bazanov Master 3,641 posts since
May 28, 2010
Currently Being Moderated
Feb 27, 2013 7:18 PM in response to: Jon Fabris
Re: Newbie needs help setting up debugging Webstorm

Do not click on the link -- instead select and copy-paste.

Vladimir Krivosheev Novice 211 posts since
Mar 3, 2007
Currently Being Moderated
Mar 1, 2013 10:45 AM in response to: Jon Fabris
Re: Newbie needs help setting up debugging Webstorm

Please ensure that remote mappings are set (see run configuration). Or please try WebStorm 6 (http://blog.jetbrains.com/webide/2013/02/webstorm-6-public-preview-build/).

More Like This

  • Retrieving data ...