Skip to Content
Programming ASP.NET AJAX
book

Programming ASP.NET AJAX

by Christian Wenz
September 2007
Intermediate to advanced
473 pages
10h 7m
English
O'Reilly Media, Inc.
Content preview from Programming ASP.NET AJAX

Appendix A. Debugging ASP.NET AJAX Applications

In a perfect world, every line of code we write would be flawless. There may actually be some developers out there who never make mistakes—I am not one of them. Debugging ASP.NET AJAX applications, or JavaScript applications in general, is much more difficult than finding errors in “regular” programs. An Ajax application runs on both the client and the server. This leads to some obstacles for debugging: some server errors are not shown in the client. Also, very often an error is caused by the data sent between client and server, which you need to inspect as well.

This appendix presents some useful tools that will enable you to effectively debug ASP.NET AJAX applications running in the browser (and any JavaScript code). We will also have a look at debugging features provided by ASP.NET AJAX itself.

Debugging Tools

When asked what the best way is to test JavaScript during the development process, many developers answer, “Do not use Internet Explorer.” Whereas the most recent versions of all the major browsers are really quite good, the quality of JavaScript error reporting differs greatly between them. The reporting for IE suffers the most. Take a look at the error message for identical JavaScript errors generated by different browsers. Figure A-1 shows the output in Firefox, which includes a line number, the name of the file, which caused the error, and also (when clicking on the filename) the erroneous code in question. Not great, but ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Introducing Microsoft® ASP.NET AJAX

Introducing Microsoft® ASP.NET AJAX

Dino Esposito
ASP.NET AJAX in Action

ASP.NET AJAX in Action

Alessandro Gallo, David Barkol, Rama Krishna Vavilala
ASP.NET AJAX UpdatePanel Control

ASP.NET AJAX UpdatePanel Control

Matt Gibbs, Bertrand Le Roy
Programming ASP.NET MVC 4

Programming ASP.NET MVC 4

Jess Chadwick, Todd Snyder, Hrusikesh Panda

Publisher Resources

ISBN: 9780596514242Errata Page