.net Step Into Property/Function (F11) 无法按预期工作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4873225/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Step Into Property/Function (F11) doesn't work as expected
提问by Tim Schmelter
In Visual Studio 2010, the Step Into Property/Function (F11) doesn't work as expected.
在 Visual Studio 2010 中,Step Into Property/Function ( F11) 无法按预期工作。
It doesn't step into property setters or getters.
它不会进入属性设置器或获取器。
I converted the solution from Visual Studio 2005to 2010, the function i wanted to step into is a property in a separate class library.
我将解决方案从 转换Visual Studio 2005为2010,我想进入的函数是单独类库中的一个属性。
How can I make it work as I expect?
我怎样才能让它按我的预期工作?
回答by Tim Schmelter
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:
在 VS 2010 中,默认设置是跳过属性和运算符(如F10),即使您想进入(F11)。所以这里是解决方案:
- 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.
- 转到 Visual Studio 中的工具 > 选项菜单。
- 转到左侧窗格中的调试 > 常规菜单项。
- 在右侧视图中,您将看到一个选项跳过属性和运算符(仅限托管)。取消选中此选项,然后就全部设置好了。


回答by rcarvalhoxavier
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.
在 Visual Studio 2015上对我来说有效:我关闭了 VS 并删除了文件夹:.vs(隐藏文件夹,有时与解决方案文件一起)并再次打开 Visual Studio。
回答by Pit J
Just vote here and Microsoft will resolve in VS2019 only if we have enough votes.
只需在这里投票,只有当我们有足够的票数时,Microsoft 才会在 VS2019 中解决。

