需要效率技巧以在Visual Studio 2010中进行调试 [英] Need efficiency hack for debugging in Visual Studio 2010

查看:92
本文介绍了需要效率技巧以在Visual Studio 2010中进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常使用 Debug->例外->在调试会话期间检查CLR异常。有时,会引发并处理异常,但是我真的很想找到异常的来源。为了做到这一点而没有看到我不在乎的优先机会异常,我启动了我的应用程序,然后检查CLR异常:

I frequently use Debug -> Exceptions -> check CLR Exceptions during debugging sessions. Sometimes, an exception gets thrown and handled, but I really want to find the source of the exception. In order to do this without seeing first-chance exceptions that I don't care about, I start my app, and then check CLR Exceptions:

这真的很乏味,我很喜欢在我的VS2010工具栏中有一个切换按钮,使我可以随意设置/重置CLR异常,而不必键入 CTRL + D E ,选中该框,然后单击确定(然后再次执行相同的过程以关闭异常)。我进行了工具栏的自定义,但是我所能得到的只是一个弹出例外对话框的按钮。这显然比打 CTRL + D E 效率低。

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插件?

Does anyone know of another way to add this? Will it require a VS addin? A keystroke mapping would be nice as well.

我从未在VS中使用过Macro Recorder,但是也许这是有必要的地方?

I've never used the Macro Recorder in VS ever, but maybe this is one place where it's necessary?

推荐答案

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

Yes. Use the macro recorder to record the steps.

将宏重命名为助记符。

转到(工具)(自定义)

go to (tools)(customize)

在底部有一个键盘按钮,可用于将该宏映射到键或

at the bottom there is a keyboard button you can use to map that macro to a key or

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

the commands tab will allow you to (add command) to any specific menu or tool bar.

这篇关于需要效率技巧以在Visual Studio 2010中进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆