I want to know ,how to debug javascript in asp.net?Can I apply break point to javascipt?
-
Firebug for Firefox is the best choicePaperThick– PaperThick2012-08-16 07:36:02 +00:00Commented Aug 16, 2012 at 7:36
-
"The best" is obviously a personal opinion. E.g. for me, the Google Chrome developer tools are "the best".Uwe Keim– Uwe Keim2012-08-16 07:37:01 +00:00Commented Aug 16, 2012 at 7:37
-
Yes, I must agree :) Google Chrome dev tool is not buggy at all. But I use Firebug, since it has lots of extensions..enesunal– enesunal2012-08-16 07:38:05 +00:00Commented Aug 16, 2012 at 7:38
5 Answers
You could do following
- Use
debuggerkeyword with .Net IDE. In your javascript on your page. something like this.
- Use F12 Developer tool with IE browser.
- Use FireBug with Firefox.
- Use Control - Shift - J to open Developer Tools and bring focus to the Console. for Google Chrome.
Comments
If you are using Visual Studio along with Internet explorer, you can debug javascript by simply applying breakpoints. Or else if you want to debug your javascript file in fire fox or chrome browsers you can make use of tools like Firebug @ http://getfirebug.com/
Comments
You can use Firefox but Firebug should be installed. Then, from Script tab, you should "Reload" to see all resources. After that, when you want to debug any line, put breakpoint to left side of code and when you reload the page debug will start and you can step into/ over / out, continue, rerun..