Debugging Javascript with FireBug and Visual Studio
Hello everyone,
I just installed FireFox for the first time so I have version 14 and have the FireBug addon setup. FireBug 1.10. I still haven't been able to figure out how to set up FireBug/FireFox to get Visual Studio to stop on a breakpoint in a javascript function. Can someone please tell me exactly what it is that I need to do with this version of Firebug and or FireFox so that I can step through javascript code in Visual Studio 2010?
Re: Debugging Javascript with FireBug and Visual Studio
Do you have Visual Studio's default previewer set to Firefox and not IE?
Re: Debugging Javascript with FireBug and Visual Studio
Howdy,
Yep I have Visual Studio setup to use FireFox by default. The projects in Visual Studio open in FireFox. If I could get this VS/FireFox environment to break on the breakpoint I'll be happy. It's still not happening.
Re: Debugging Javascript with FireBug and Visual Studio
Have you checked that Control Panel / Internet Properties / Advanced / Disable script debugging (others) isn't checked?
Re: Debugging Javascript with FireBug and Visual Studio
That's for IE, not Firefox.
Re: Debugging Javascript with FireBug and Visual Studio
Ok but why is there one box for IE and one for others then?
Re: Debugging Javascript with FireBug and Visual Studio
Yep, disable script debugging other(and internet explorer) are Not checked. I'm working on a project in which some test code that gets data from a web service won't work under Internet Explorer but works fine in FireFox, so that's why I'm doing the FireFox thing. Ordinarily I would be just fine working with IE.
Re: Debugging Javascript with FireBug and Visual Studio
Quote:
Originally Posted by
S_M_A
Ok but why is there one box for IE and one for others then?
"Other" is for Windows scripting host (wscript). It's still scripting, but not directly in Internet Explorer. For example: If you run a VBScript (*.vbs) from the desktop for renaming folders or something.
Quote:
Originally Posted by
viperbyte
Yep, disable script debugging other(and internet explorer) are Not checked. I'm working on a project in which some test code that gets data from a web service won't work under Internet Explorer but works fine in FireFox, so that's why I'm doing the FireFox thing. Ordinarily I would be just fine working with IE.
If it's working fine in Firefox, then Firebug shouldn't throw any errors anyway. So, in this case, you want debugging turned on for Internet Explorer.
Re: Debugging Javascript with FireBug and Visual Studio
Quote:
Originally Posted by
PeejAvery
"Other" is for Windows scripting host (wscript).
:) well now everybody knows how often I do something in that area...