External JavaScript but not Local

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

External JavaScript but not Local

Postby JamesBrown » April 26th, 2014, 6:55 pm

I am having trouble getting the latest release to break on JavaScript. It will break when the JavaScript is in an external file but not when its local.
The JavaScript runs the same in either case - it just won't breakpoint on local JavaScript.
VS 2012 update 4
JamesBrown
 
Posts: 27
Joined: June 20th, 2013, 5:04 pm

Re: External JavaScript but not Local

Postby JamesBrown » April 27th, 2014, 4:48 pm

More information.
It turns out that if I move the JavaScript above a set of PHP then the breakpoint works. If below the breakpoint fails.
The JavaScript itself works fine in either place.

The PHP code is the setup of a database grid (KoolPHPGrid).
Is this any help?
JamesBrown
 
Posts: 27
Joined: June 20th, 2013, 5:04 pm

Re: External JavaScript but not Local

Postby Miloslav Beno » April 27th, 2014, 5:37 pm

Hi James,

Thanks for the post and sharing your findings with us. I can confirm it behaves as you've described. We're going to discuss this directly with Microsoft as they own javascript debugger. We'll be notifying on this thread as soon as we know more.

Thanks!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: External JavaScript but not Local

Postby JamesBrown » May 6th, 2014, 1:59 am

I moved back to IE 10 from IE 11 with no improvement.
Am I the only one that is having this problem?
What am I doing different than everyone else?
JamesBrown
 
Posts: 27
Joined: June 20th, 2013, 5:04 pm

Re: External JavaScript but not Local

Postby Miloslav Beno » May 6th, 2014, 9:43 pm

I don't think you are doing something wrong. There will be some issue with mapping javascript breakpoints from server code to generated code which runs in the browser. That's why there's no problem in the begining of the script or in js only files.

We're just discussing this with guys from Microsoft. I'll be informing about progress.

Thanks
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 2 guests

cron

User Control Panel

Login

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 787 on May 12th, 2024, 11:50 am

Users browsing this forum: No registered users and 2 guests