Why does the debugger's breakpoint condition allow an assignment-statement as bool-condition?

前端 未结 3 629
滥情空心
滥情空心 2021-02-19 00:33

This is very dangerous so I wonder why it\'s allowed. Since I often need to switch between VB.NET and C# I sometimes add breakpoint-conditions like following:

fo         


        
3条回答
  •  温柔的废话
    2021-02-19 00:55

    I can disagree about buggy nature of this behavior. Few examples where for debugging purposes in my life if was useful:
    1. Other thread modifies something in your code.
    2. Other service updated value in db
    So I suppose for cases of synchronization it can be useful feature, but I agree that it can cause problems

提交回复
热议问题