Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set a data breakpoint in a C# program in Visual Studio 2015? [duplicate]

How can I set a data breakpoint in a C# program in Visual Studio 2015?

https://stackoverflow.com/a/621537/156458 says that for C++

How to Set a Memory Change Breakpoint

From the Debug Menu, choose New Breakpoint and click New Data Breakpoint

—or—

in the Breakpoints window Menu, click the New dropdown and choose New Data Breakpoint.

But neither exists in Visual Studio 2015.

Is data breakpoint not supported for C#?

Why is it supported for C++, but not for C#?
Is it technically difficult to implement?

Any way to work around?

like image 619
Tim Avatar asked Feb 28 '17 21:02

Tim


1 Answers

It doesn't appear to be possible unfortunately: https://msdn.microsoft.com/en-us/library/350dyxd0%28v=vs.100%29.aspx

Edit: It's a much requested feature with some discussion about it: https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/6097301-support-data-breakpoints-for-c

like image 86
roundtheworld Avatar answered Oct 25 '22 04:10

roundtheworld