Js breakpoints ignored

Hi all! I'm quite new to PhPStorm and I'm testing the evaluation copy (just dowloaded), so please be patience if my question seems stupid.
I installed phpStorm so to remote debug a very simple program connected to a XAMPP server via XDebug, and everything seems working correctly.
The only problem I have is that if I try to set a breakpoint it works in a PHP script and execution stops, it doesn't in any java script...
Can you suggest me something?

Thankyou,
Giorgio

6 comments

Hi there,

Since I do not know at all what you have done there exactly (no screenshots, no description of your setup etc), I may only suggest checking these 2 articles/manuals -- if you do everything correctly it will work just fine:

0

 
Hi Andriy and thank you for your reply.
I can understand that having no idea of my setup it is hard to understand why such problem arises, but consider that being new to the environment it is very hard to focalize which information can be helpfully attached.
 So: now I will try to follow step by step the samples you linked me, but have you any idea of where in the setup attention must be directed knowing that php breakpoints hit (that should mean that most part of the configuration is ok) and js not?
 
Giorgio

0

Something important that I just discovered: if I start a LOCAL debug session breakpoints hit both in php and in js. Maybe I forgot something in my Apache or Tomcat servers setup?

Giorgio

0

Hi there,

I never debug PHP and JS at the same time -- always separately.

For JS Remote debug -- my only (the most obvious) suggestion is to make sure that path mappings are set correctly -- quite often it is the case in such situations.

0

Thank you Andriy!
The most obvious answer was the right one...
I found that in path mapping I omitted to start the remote url with "http://".

I lost more or less 2 days because I'm stupid, but what sounds strange to me is that such a complete and complicated development tool cannot shot even a banal warning when this happens...

Thank you again,
Giorgio

0

Hi there,

You are always welcome to submit your ideas (solid ideas) to the Issue Tracker - be it Bug, Usability Problem or Feature Request -- devs definitely would like to see their own product to be even better than it is now.

0

Please sign in to leave a comment.