Bagikan melalui


How to: Step Into Properties and Operators in Managed Code

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic does not apply Topic applies

Managed only

Topic does not apply

Standard

Topic applies Topic applies

Managed only

Topic does not apply

Pro and Team

Topic applies Topic applies

Managed only

Topic does not apply

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

Command or commands hidden by default.

Starting with Visual Studio 2008 SP1, the debugger steps over properties and operators in managed code by default. In most cases, this provides a better debugging experience. You can disable this behavior if you want the debugger to step into a property or operator.

The Step Into Specific command allows you to step into a property or operator, even when automatic stepping into properties and operators is turned off. For information about the Step Into Specific command, see How to: Step Into a Specific Function.

To enable stepping into properties and operators

  1. On the Tools menu, click Options.

  2. In the Options dialog box, click Debugging from the box on the left side.

    If the Debugging category does not appear, select the Show all settings check box.

  3. In the General box, clear the Step over properties and operators (Managed only) check box.

  4. Click OK.

To disable stepping into properties and operators

  1. On the Tools menu, click Options.

  2. In the Options dialog box, click Debugging from the box on the left side.

    If the Debugging category does not appear, select the Show all settings check box.

  3. In the General box, select the Step over properties and operators (Managed only) check box.

  4. Click OK.

See Also

Tasks

How to: Step Into a Specific Function

Concepts

Execution Control