Docsity

Debugging Tools: Using Visual Studio Debugger for Identifying and Eliminating Bugs, Slides of Business Administration

Partial preview of the text

Download Debugging Tools: Using Visual Studio Debugger for Identifying and Eliminating Bugs and more Slides Business Administration in PDF only on Docsity!

Debugging Tools

Towards better use of system tools to weed the nasty critters out of your programs

Bug Identification & Elimination

1 Bug reports should contain a test case, output, and the version number of the software. 2 Reproduce the bug using the same version the customer used. 3 Find the root cause of the bug. 4 Check if the bug still occurs with the latest version. If it does, fix it. 5 If it doesn’t, make sure it is not just masked by other changes to the software. 6 Add test cases used to reproduce the bug to the regression test suite. 7 Keep Records!

Visual Debugger

  • Graphically Oriented
  • Run from Visual Studio
  • Can debug a failed process by selecting the Yes button at “Debug Application” dialog after a memory or other failure occurs
  • Can attach to a running process by choosing the Tools->Start Debug->Attach to Process menu option

The Visual Debugger

Breakpoint Window

Conditional Window

Examining Program State

  • Print and/or Change variable state.
  • Walk up/down the stack trace.
  • View disassembled code.