需要在 Visual Studio 2010 中进行高效调试

2024-01-17

我经常使用Debug -> Exceptions -> check CLR Exceptions在调试会话期间。有时,会抛出并处理异常,但我真的想找到异常的来源。为了在不看到我不关心的第一次异常的情况下执行此操作,我启动我的应用程序,然后检查 CLR 异常:

This gets really tedious, and I'd love to have a toggle button in my VS2010 toolbar that allows me to only set/reset CLR Exceptions at will, without having to key in CTRL+D, E, check the box, and then click OK (and then do the same process again to turn off the exceptions). I went into the toolbar customization, but all I could get was a button that bring up the Exceptions dialog. This is obviously less efficient than hitting CTRL+D, E.

有谁知道添加这个的另一种方法?需要 VS 插件吗?按键映射也很好。

我从来没有在 VS 中使用过宏录制器,但也许这是一个需要它的地方?


是的。 使用宏记录器记录步骤。

将宏重命名为助记符。

转到(工具)(自定义)

底部有一个键盘按钮,您可以使用该按钮将该宏映射到某个键或

命令选项卡将允许您(添加命令)到任何特定的菜单或工具栏。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

需要在 Visual Studio 2010 中进行高效调试 的相关文章

随机推荐