How to debug a javascriptfunction

Posted by Santosh.Choudhury under JavaScript on 11/15/2012 | Points: 10 | Views : 916 | Status : [Member] | Replies : 4
If a java script function written in aspx page then how to know the error and how to debug the particular function




Responses

Posted by: Bhuvana on: 11/15/2012 [Member] Starter | Points: 25

Up
0
Down
In Visual studio 2008 hit the break point in particular function then run the
page break point activated use F10 key for Debugging

Thanks & Regards
Bhuvana

Santosh.Choudhury, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandhyab on: 11/15/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

Please go through following link. Hope this will help you
http://msdn.microsoft.com/en-us/library/aa242559%28v=vs.60%29.aspx

Thanks & Regards
Sandhya

Santosh.Choudhury, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 11/15/2012 [Member] Bronze | Points: 25

Up
0
Down
Check this

http://getfirebug.com/javascript

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Santosh.Choudhury, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Funda on: 11/15/2012 [Member] Starter | Points: 25

Up
0
Down
You can place debugger statements anywhere in procedures to suspend execution. Using the debugger statement is similar to setting a breakpoint in the code.
The debugger statement suspends execution, but it does not close any files or clear any variables.

 for(i = 1; i<5; i++) {

// Wait for user to resume.debugger
debugger;
// YOUR CODE.
}

OR
// IE 10
 for(i = 1; i<5; i++) {

// Print i to the Output window.
Debug.write("loop index is " + i);
}


Santosh.Choudhury, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response