Can I set a breakpoint when variable is getting a specific value in .NET?

前端 未结 7 1941
执念已碎
执念已碎 2020-12-04 23:29

I am using Visual Studio 2010, and I know this feature is available in C++.

I need to debug some code, that changes a variable to several values. I want to debug the

相关标签:
7条回答
  • 2020-12-05 00:21

    It depends on the scope of your breakpoint. If the variable is not local or not static you won't be able to.

    To set the condition of a breakpoint, right click it and you should get this screen:

    Enter image description here

    Pick Condition...

    0 讨论(0)
提交回复
热议问题