Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does one go about debugging javascript? 2

Status
Not open for further replies.

xarzu

IS-IT--Management
Jan 16, 2012
19
US
How does one go about debugging javascript?

Do you use firebug and run your page through your localhost?

If javascript is part of an ASP.NET application, I have found that the breakpoints in a .js file in Visual Studio seem to be ignored.

The problem I see is that the ASP.NET application which uses javascript code has too versions -- a published and a debug version. The Debug version is located within my group of folders under the localhost. Also, when I launch the program through Visual Studio, it defaults to IE. Is there some way I can have it launch a different browser that will allow for javascript debugging?

Is there a step-by-step description somewhere?

Javascript seems to be very popular. I imagine a debugger is in use. So, what is it and how can you use it if your javascript is already part of an asp.net web site/page?
 
Is there some way I can have it launch a different browser that will allow for javascript debugging?
Run your code on a real server rather than with Visual Studio, that way you are testing as the real world will be using it.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
I use the Error console in firefox to debug. It will show you any and all Js errors you may have. It also shows you CSS and HTML coding issues.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
There's life beyond Firebug: Chrome and IE have their own extensions for debugging and IMHO they do their work

Cheers,
Dian
 
On IE 8+, F12 brings up the web page debugger. Run the solution so that the web page is loaded into the Browser, press F12 to load the debugger and select the scripts Tab. Set your breakpoints and then reload the page. Your page should break when execution reaches the breakpoint.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top