Page 1 of 1

JavaScript debugging (client side) with PHP

PostPosted: May 23rd, 2017, 3:37 pm
by Jradxl
Hello Devsense, or anyone else..
I have the vs2017 version trial running and have tried to debug JavaScript a) as a .js file in a script tag, and b) as embedded in script tag.
I'm impressed that with IE it works in the IDE as a break point and local variables.
In Edge it seems only to work with the developer tools in the browser.

Please can you say what is to be expected with your current vs2017 version. I thing your documentation is out of date or I've not found the right documentation yet!!

Also, can I expect such in Firefox, Opera and Chrome?
If so I need to know what to install and how to configure.

Thx
John

Re: JavaScript debugging (client side) with PHP

PostPosted: June 4th, 2017, 11:38 pm
by jazz
You can already debug JS in Chrome and Firefox. In fact Chrome had it built-in first and has probably the most mature developer tools of the lot.

As for how this relates to PHP Tools? I'm not quite sure what you're asking, but if it is "can I debug JS running in the browser using VS2017?", the I will just say "probably not ever".

Re: JavaScript debugging (client side) with PHP

PostPosted: January 18th, 2019, 2:58 pm
by Miloslav Beno
UPDATE: Chrome JS debugger is supported for PHP Projects in VS since version 1.30.

Re: JavaScript debugging (client side) with PHP

PostPosted: January 18th, 2019, 9:47 pm
by mhpcc
jazz wrote:You can already debug JS in Chrome and Firefox. In fact Chrome had it built-in first and has probably the most mature developer tools of the lot.

As for how this relates to PHP Tools? I'm not quite sure what you're asking, but if it is "can I debug JS running in the browser using VS2017?", the I will just say "probably not ever".


ASP.NET projects automatically hook Chrome/IE and map the websites js to the project files, so that's very much possible. Also see the update from Miroslav.

Also, Visual Studio is awesome for debugging applications in general. Whether native or managed, whether with or without debug information. It's an almost essential tool next to IDA/Olly if you're reverse engineering.

Re: JavaScript debugging (client side) with PHP

PostPosted: February 13th, 2019, 8:28 pm
by WeedHopper