Prevent debugger to break on all Exceptions in a 3rd party library

前端 未结 4 1937
無奈伤痛
無奈伤痛 2021-01-22 05:44

I maintain an open source library that internally uses exceptions during a recursive method call. The exception is taken back on the call stack and in some cases handled, while

4条回答
  •  猫巷女王i
    2021-01-22 05:52

    I don't believe there is any way to prevent "Halt on All Exceptions" from doing exactly that.

    Is there any way to prevent that from happening other than telling users to disable that setting?

    Only by avoiding using exceptions for non-error handling purposes (from your description, it almost sounds like your library is breaking this guideline).

提交回复
热议问题