Pages

Monday, December 29, 2008

Debug Java Script

Are you in need of debugging the java script code and since VS dont support this by default, this could be done by using multiple alerts at the place where we need to know the obj values... But this is tricky to handle...

So Go for debugger; option which enables your browser to ask for debugging Javascript coding And this debugging could be done with editors of VS (From VS 2003).

example -
function(value)
{
debugger;
var test;
if(value==1)
return true;
else
return false;
}

Note: For this ur browser has to be enabled for script debugging.
Goto Tools-> Options -> Internet Options[Advanced Tab].Ensure Disable script debugging options are unselected.

No comments: