I don't think you can be a real effective ASP.Net programmer (personal opinion alert) unless you can do SOME javascript. Postbacks not only increase your server load, they can also detract from your user's experience on your ASP.Net site.
The downside is that working with javascript is that it's always been tough to debug (if not impossible), as well as untyped, but that part's an aside. Well, it's tough no more. Here's today's tip(s). First, enabling debugging:
Image 1: Browser Options
Image 2: Setting the script debugging in the Process Debugging command in .Net
OK, you're all set for debugging. So what! Well, the thing I learned today was how to break into the script (without an error, which causes it to trigger debugging automatically) is to add the following script where you want to break:
debugger;
Your web page will break right there, and you'll be able to step through it just like you would your normal ASP.Net page, with local variable browsing and everything!
Powered by: newtelligence dasBlog 2.3.9074.18820
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2012, © Copyright 2010
E-mail