Appendix C. Using the Visual Studio 2005 Debugger


C. Using the Visual Studio 2005 Debugger

We are built to make mistakes, coded for error.

Lewis Thomas

What we anticipate seldom occurs; what we least expect generally happens.

Benjamin Disraeli

It is one thing to show a man that he is in error, and another to put him in possession of truth.

John Locke

He can run but he can't hide.

Joe Louis

And so shall I catch the fly.

William Shakespeare

Objectives

In this appendix you will learn:

  • To use the debugger to locate and correct logic errors in a program.

  • To use breakpoints to pause program execution and allow you to examine the values of variables.

  • To set, disable and remove breakpoints.

  • To use the Continue command to continue execution from a breakpoint.

  • To use the Locals window to view and modify variable values.

  • To use the Watch window to evaluate expressions.

  • To use the Step Into, Step Out and Step Over commands to execute a program line-by-line.

  • To use the new Visual Studio 2005 debugging features Edit and Continue and Just My Code™ debugging.

Outline

C.1 Introduction

C.2 Breakpoints and the Continue Command

C.3 The Locals and Watch Windows

C.4 Controlling Execution Using the Step Into, Step Over, StepOut and Continue Commands

C.5 Other Features

C.5.1 Edit and Continue

C.5.2 Exception Assistant

C.5.3 Just My Code™ Debugging

C.5.4 Other New Debugger Features

C.6 Wrap-Up



Visual BasicR 2005 for Programmers. DeitelR Developer Series
Visual Basic 2005 for Programmers (2nd Edition)
ISBN: 013225140X
EAN: 2147483647
Year: 2004
Pages: 435

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net