Evaluate expressions during debugging in Visual Studio

僤鯓⒐⒋嵵緔 提交于 2019-12-10 13:36:17

问题


I am used to Jetbrains IDEA and Java, but now I have a project in .NET/C# and using Visual Studio 2017 (Community).

If I debug code in IDEA, I can always run code when the execution is stopped at a breakpoint using the 'Evaluate Expression' function of the IDE: https://www.jetbrains.com/help/idea/evaluating-expressions.html (Although it is for PyCharm, the Java one works the same: GIF).

Is there anything similar in Visual Studio?


回答1:


I have the exact same issue.

After researching I found the closest thing is Immediate Window which give you some intelligence while typing.




回答2:


The Visual Studio debugger includes expression evaluators that work when you enter an expression in the QuickWatch dialog box, Watch window, or Immediate window. The expression evaluators are also at work in the Breakpoints window and many other places in the debugger.

Here's a link



来源:https://stackoverflow.com/questions/48944289/evaluate-expressions-during-debugging-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!