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

C#Visual Studio

C# Problem Overview


I am getting the following error message while running .net 3.5 applciation

> 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 continue being notified when an automatic step-over > happens?

What does this error message mean?

C# Solutions


Solution 1 - C#

VS2017 and VS2019:

> Tools > Options > Debugging > Uncheck "Step over properties and operators > (Managed only)".

Solution 2 - C#

It is not an error message as such. The IDE is telling you that tracing for some of your code is being skipped during debugging due to the current settings. If you want to be able to trace into the code, change the settings as described in the message.

You can change this behavior by going to: Tools -> Option -> Debugging.

Solution 3 - C#

The setting for this in VS2010 is under: Tools -> Option -> Debugging (near the middle)

Solution 4 - C#

To be more specific: the option to enable in Visual Studio 2010 is:

Tools->Options->Debugging->General->Enable property evaluation and other implicit function calls

Solution 5 - C#

As answered by other people this is an informational message from Visual Studio telling you that it could have stepped into a line of code but rather stepped over it due to current dev environment settings.

There are three ways to change this behaviour in VS2012:

  • Change the settings: Tools->Options->Debugging->General->Step over properties and operators OR
  • Right click on the line of code to get the context menu. Then untick: Step over properties and operators OR
  • Select 'Step into Specific' in the right click context menu which will ask you which specific function you would like to step into. It will list all the properties/functions involved in the current source line.

Solution 6 - C#

In Visual Studio 2013: right click on the line that caused the message to pop-up. This will bring up the context menu. Uncheck the option: Step over properties and operators.

Solution 7 - C#

Other posts have the correct answer, which state that you can change the option in Tools > Options > Debugging > Step over properties and operators (Managed only) in Visual Studio. I wanted to add an image from the Options dialog for those who are visual. Uncheck the property if you want to perform Step Into (F11) without automatic Step Over (F10). enter image description here

Solution 8 - C#

The reason that we get this prompt is:
that we may have created properties or operators in our classes, and when, during debugging, we reach that line of code, it is stepped over (like the effect of F10 ) instead of stepping into ( the actual effect of F11 )

e.g., this line of code,

enter image description here

having pressed F11 here, resulted into effect of pressing F10 enter image description here
So Visual Studio notifies us..and gives this beautiful, well illustrated message, which I could only understand when I read the following blogpost

Credits: AutoStepOver a blog post

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBalaView Question on Stackoverflow
Solution 1 - C#radbyxView Answer on Stackoverflow
Solution 2 - C#Brian RasmussenView Answer on Stackoverflow
Solution 3 - C#JessView Answer on Stackoverflow
Solution 4 - C#Jay BaxterView Answer on Stackoverflow
Solution 5 - C#CazView Answer on Stackoverflow
Solution 6 - C#Gustav SwanepoelView Answer on Stackoverflow
Solution 7 - C#iCodeView Answer on Stackoverflow
Solution 8 - C#IrfView Answer on Stackoverflow