How do I “run until this variable changes” when debugging?

前端 未结 8 828
醉话见心
醉话见心 2020-12-30 23:29

When debugging my C#, I often want to know when a variable\'s value changes and then investigate the state of the program.

Currently, I do

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-31 00:00

    Use Debugger.Break based on some runtime condition, or go rightclick on some breakpoint, and choose conditional break -> has changed

    Edit: dunno about this in Express

提交回复
热议问题