Enable step into properties in Visual Studio Debugger

by Admin 25. June 2010 05:52

Recently I installed VS2010 on my new shiny Windows 7 64bit machine. I started to debug my blog application and moment I tried to stepped into a property of my class, I got the following message displayed to me. I knew what this was about because I resolved it last time I ran into this.

Your step-into request resulted in an automatic step-over of a property or operator.

This behavior can be overridden in the context menu for the line being executed by choosing 'Step Into Specific' or by unchecking the option 'Step over properties and operators'.

Do you want to continue being notified when an automatic step-over happens?

Microsoft probably has a reason to not allow to step into a property by default. Properties are supposed to be mostly get and set and not contain a whole lot of implementation in it. But that may not be the case all the time. If somebody is trying to step into a property that means this developer is suspecting something in that property that may be causing problems. So by default this behavior needs to be reversed and allow stepping into properties. For now this is how you can enable stepping into properties.

  • Go to Tools > Options menu in Visual Studio.
  • Goto Debugging > General menu item in left pane.
  • In right view you will see and option Step over properties and operators (Managed only). Uncheck this option and then you are all set.

Views: 4663

Tags: ,

Visual Studio

Powered by BlogEngine.NET 1.5.1.7
Theme by Naveen Kohli