How to temporarily deactivate all try / catch blocks?

前端 未结 1 1515
眼角桃花
眼角桃花 2021-02-12 08:48

Is there a possibility to deactivate / activate all try catch blocks in the whole project as easy as clicking a button?

I need this for debugging when I don\'t want the

1条回答
  •  野的像风
    2021-02-12 09:25

    To catch exceptions the moment they're thrown ("first-chance exceptions" in Win32 parlance):

    • in VS2008: go to Debug, Exceptions...

    • by VS2015: this has been moved to Debug > Windows > Exception Settings

    Then check the box Thrown for Common Language Runtime Exceptions.

    0 讨论(0)
提交回复
热议问题