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

前端 未结 7 1946
执念已碎
执念已碎 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:16

    Add a breakpoint with F9 - right click it and select "Condition..." - now you can add a boolean condition and the breakpoint will only get hit if that condition evaluates to true.

提交回复
热议问题