How to implement top level exception handling?

前端 未结 5 1210
再見小時候
再見小時候 2020-12-31 17:19

I recently had to develop an additional module for an existing service developed by a colleague. He had placed a try/catch block in the main working function for catching al

5条回答
  •  攒了一身酷
    2020-12-31 17:56

    If you want to see the exception when it occurs, in Visual Studio you can go to the DEBUG menu, select EXCEPTIONS and you can tell the debugger to Break as soon as an Exception is thrown. You even get to pick what type of Exceptions. :)

提交回复
热议问题