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
Post a Comment