Step Into Property/Function (F11) doesn't work as expected

.NetVisual Studio-2010Debugging

.Net Problem Overview


In Visual Studio 2010, the Step Into Property/Function (F11) doesn't work as expected.

It doesn't step into property setters or getters.

I converted the solution from Visual Studio 2005 to 2010, the function i wanted to step into is a property in a separate class library.

How can I make it work as I expect?

.Net Solutions


Solution 1 - .Net

In VS 2010 it is the default setting that you step over properties and operators(like F10) even if you want to step into(F11). So here is the solution:

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

enter image description here

Solution 2 - .Net

Worked for me on Visual Studio 2015: I closed VS and deleted folder: .vs (hidden folder, some times together with solution file) and opened again Visual Studio.

Solution 3 - .Net

Just vote here and Microsoft will resolve in VS2019 only if we have enough votes.

https://developercommunity.visualstudio.com/idea/463833/why-step-over-properties-and-operators-managed-onl.html

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
QuestionTim SchmelterView Question on Stackoverflow
Solution 1 - .NetTim SchmelterView Answer on Stackoverflow
Solution 2 - .NetrcarvalhoxavierView Answer on Stackoverflow
Solution 3 - .NetPit JView Answer on Stackoverflow