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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debugging Javascript

Status
Not open for further replies.

byam

Programmer
Oct 24, 2003
396
CA
If you have Visual Studio or VS.Net or even the MS Debugger, you can use these to debug and step through your Javascript code.

Just put in "debugger;" anywhere in your code and it will bring up your debugger at that 'breakpoint'.

You will need to have script debugging enabled, in Tools - Options - Advanced, and also Just in Time debugging enabled in your debugger.

e.g.

function test(param) {
debugger;
alert(param);
}

MS debugger can be download at

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top