Debugging Web Applications

Debugging Web applications is easier in .NET because we are debugging Visual Basic .NET in the code-behind file, but it is still not easy. Debugging a Web application is harder than debugging a Windows application because we have several places to look for bugs. Pesky bugs can hide in the HTML, the code-behind file, some SQL stored procedure, or some script somewhere. Unfortunately, tools for debugging all these things are not as advanced as tools for debugging plain old VB code are.

Fortunately, there are some things you can do that may surprise you. You can set breakpoints in the HTML or ASP supporting a Web page or user control. You can use the same System.Diagnostics tools like Trace, Debug, and Assert that you ...

Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.