> Exceptions\" dialog window (see image below).Can enabling and disabling these" />
开发者

Visual Studio enable debug exceptions through macro

In Visual Studio I would like to break on certain exception while in debug mode. This is configured through the "Debug >> Exceptions" dialog window (see image below). Can enabling and disabling these checkboxes be controlled开发者_开发百科 through a macro? I would like to add a button to a toolbar to control the enable/disable of these with just one click.

Visual Studio enable debug exceptions through macro


Yes, you can use a macro to toggle exceptions on or off by using the ExceptionSettings class. The problem seems to be that using the macro is really slow. The following links has code to get you started with this.

Customizing Exception Handling in the VS Debugger - John Robbins' Blog
Fixing Debug > Exceptions settings programmatically - code.logos.com

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜