Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

2310 b xb

550 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

2310 b xb

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

×