27 May 2021

Visual Studio: how to temporarily deactivate all try / catch blocks

To catch exceptions the moment they're thrown ("first-chance exceptions" in Win32 parlance):
  • in VS2008: go to Debug, Exceptions...
  • in VS2015 (and later): this has been moved to Debug > Windows > Exception Settings
Then check the box Thrown for Common Language Runtime Exceptions:


Found here.