Question on setting up new project from existing files

Let's say I have a project on http://myserver.com:9999/project. This is the public URL to my project.

I have installed WebStorm on the server that is hosting the project and can work live on this project.

I cannot work on my project at http://localhost:9999/project because of cross domain issues.

I cannot work on my project at c:\project for the same reason. When I run the page for testing it has to be from the public URL. I'd really like to start using the debugger in WebStorm and all the other great features this product has to offer but when even I start my project to debug it goes to the UNC path (c:\project) and not the public URL. Can WebStorm work from the public URL? I'm working on the actual box that is hosting the files so I'm hoping that helps me out here.

5 comments
Comment actions Permalink

Hello Gene,

Would you like to debug PHP or JavaScript?

Regards,
Kirill

PS What if you enter public URL in 'Web server root URL' field at File | Settings | Deployment | (your server) page?

Message was edited by: Kirill Safonov

0
Comment actions Permalink

This would be javascript. I'm pretty sure I did enter that URL into the settings but I can double check.

0
Comment actions Permalink

You can debug JavaScript using Remote JavaScript Debug configuration. Specify http://myserver.com:9999/project in URL field in run configuration settings, press 'Debug' button and use 'Scripts' tab to open scripts, put breakpoints in it and so on.

0
Comment actions Permalink

What is the web path on server referring to? I'm not sure what to put there?

0
Comment actions Permalink

Ok got it working. Seems like you have to also go into the Run | Edit Configurations section and add some settings for the pages you want to debug. When I added settings here the http:// location to the file was used rather then the c:\ location when a clicked on debug. I'm already seeing that WebStorm is a must have for me and plan to buy, but the documentation is a little light. I'd love a book on this tool or something with more detail and examples. It has a ton of killer features in it, but I just can't spend days hunting how to make things work. I'm already hunting to make the website that I'm working on work HAHAHA. Still, at least it is time well spent. WebStorm has now been added to my must have list of tools for web editing. Great tool!

0

Please sign in to leave a comment.