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

前端 未结 4 2010
無奈伤痛
無奈伤痛 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条回答
  •  情书的邮戳
    2021-01-22 06:01

    This is a semi-clone of this question.

    Note that none of the attributes suggested there seemed to accomplish what you are asking when I them with VS2010.

    What you can do, is make sure you're always sending the same custom exception type, ie, TigraineNamespace.TigraineException, then instruct your users to go to the Exceptions dialog (Ctrl+Alt+E), click "Add", write "TigraineNamespace.TigraineException", press Enter, then uncheck the checkbox for your particular exception.

提交回复
热议问题