Debugging with Microsoft Visual Studio .NET What Is Debugging? Debugging with Visual Studio .NET Configuring for Debugging Demonstration: Debugging with Visual Studio .NET Demonstration: Using the Debug Object
What Is Debugging? Finding design-time errors (not runtime errors) Finding logic errors Finding coding errors that are not caught by Try…Catch…Finally blocks Viewing variables as their values change Testing the limits of the Web application
Debugging with Visual Studio .NET Visual Studio .NET offers integrated debugging in the runtime Debugging an ASP.NET Page Set breakpoints Step through code View values of variables Change variable values
Configuring for Debugging Configuring Web.config Changing build options in Visual Studio .NET Debug build vs. Release build <compilation defaultLanguage=&quot;vb&quot; debug=&quot;true&quot;/> <compilation defaultLanguage= &quot;c#&quot; debug=&quot;true&quot;/>
Demonstration: Debugging with Visual Studio .NET Set breakpoints Step through code View the values of the variables
Demonstration: Using the Debug Object Add Debug statements Run in Debug mode Run in Release mode

2310 b xb

  • 1.
    Debugging with MicrosoftVisual Studio .NET What Is Debugging? Debugging with Visual Studio .NET Configuring for Debugging Demonstration: Debugging with Visual Studio .NET Demonstration: Using the Debug Object
  • 2.
    What Is Debugging?Finding design-time errors (not runtime errors) Finding logic errors Finding coding errors that are not caught by Try…Catch…Finally blocks Viewing variables as their values change Testing the limits of the Web application
  • 3.
    Debugging with VisualStudio .NET Visual Studio .NET offers integrated debugging in the runtime Debugging an ASP.NET Page Set breakpoints Step through code View values of variables Change variable values
  • 4.
    Configuring for DebuggingConfiguring Web.config Changing build options in Visual Studio .NET Debug build vs. Release build <compilation defaultLanguage=&quot;vb&quot; debug=&quot;true&quot;/> <compilation defaultLanguage= &quot;c#&quot; debug=&quot;true&quot;/>
  • 5.
    Demonstration: Debugging withVisual Studio .NET Set breakpoints Step through code View the values of the variables
  • 6.
    Demonstration: Using theDebug Object Add Debug statements Run in Debug mode Run in Release mode