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

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

    You can use conditional breakpoints. I know your question was specific to VS2010, but be aware that from VS2012 on, you have to switch to the Managed Compatibility Mode, to use conditional breakpoints in Visual Basic. Why and how is described here:

    switching-to-managed-compatibility-mode-in-visual-studio-2013

提交回复
热议问题