Debugging Javascript that are referenced in PHP files

Hi,

It is my understanding that in order to debug javascript, I have to create an .xhml file and reference the javascript module from .xhtml.
Any chances I could achieve the same if the javascript file is referenced from a .php file?

Alternatively, can I add any .js files into the "scripts" debugging window so they would become eligible for debugging in the current session?

(PHPStorm 2.0.1)

Thanks,
- D

1 comment
Comment actions Permalink

Hello,

a script appears in the 'Scripts' tree when it is loaded by the browser so there are no way to add a script manually. However if a .js file is used in php it should be shown in the 'Scripts' tree too when php file is opened in the browser.

0

Please sign in to leave a comment.