c# - Breakpoint that breaks when data changes in a managed language -


i have class list property seems lose element under circumstances. cannot find out when happens.

so i'd set visual studio breakpoint pause program moment value changes. conditional breakpoint not work in scenario, since have no idea removing breakpoint.

to put way, want program stop moment mylist.count evaluates new number.

any ideas on how this?

this not possible in c# or of other .net languages due clr limitations. visual studio native code debugger supports data breakpoints (link) c++ code not supported managed code. try break on or intercept add , remove method calls on collection suggested in other answer question.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -