Click here to Skip to main content
11,480,701 members (63,291 online)
Click here to Skip to main content

Tagged as

Debugging client JavaScript in Visual Studio 2005/.NET?

, 19 Dec 2010 CPOL 8.5K
Rate this:
Please Sign up or sign in to vote.
Debugging client JavaScript in Visual Studio 2005/.NET?
Step 1: Enable client-side script debugging in Internet Explorer
  • Open Microsoft Internet Explorer.
  • On the Tools menu, click Internet Options.
  • On the Advanced tab, locate the Browsing section, and uncheck the Disable script debugging check box, and then click OK.
  • Close Internet Explorer

Step 2: In your JavaScript function, add the keyword debugger. This causes VS.NET to switch to debug mode when it runs that line.
Note: If we put the break point only does not work sometimes, so use debugger keyword in the JavaScript code.

<script language="javascript">
       function Add(){
           debbuger; //keyword used to debug the javascript
           var a;
           a=10+20;
           alert(a);
         }
 
</script>

Step 3: Run your ASP.NET application in debug mode.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

sadanandms
Software Developer (Senior)
India India
The best way to predict the future is to create it Smile | :)

Comments and Discussions

 
GeneralMy vote of 3 Pin
Nibin2219-Jul-13 4:39
memberNibin2219-Jul-13 4:39 
GeneralReason for my vote of 3 Good tip Pin
Dilip Baboo10-Mar-11 9:04
memberDilip Baboo10-Mar-11 9:04 
GeneralTo Michael: was this really plagiarised? Do you have a link ... Pin
aspdotnetdev6-Dec-10 16:02
protectoraspdotnetdev6-Dec-10 16:02 
GeneralReason for my vote of 1 Plagiarism Pin
Michael B. Hansen6-Dec-10 8:58
memberMichael B. Hansen6-Dec-10 8:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150520.1 | Last Updated 19 Dec 2010
Article Copyright 2010 by sadanandms
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid