我一直在尝试写一个宏做相当于
如果我记录下来,它只记录一行没有做任何事情的宏代码。有谁知道怎么做?
答案 0 :(得分:2)
发布了一个类似的问题并回答here。它适用于所有CLR异常,执行时需要大约1.5秒。
答案 1 :(得分:-1)
已经很晚了,我还没有测试过,但这有帮助吗?
Dim dbg As EnvDTE90.Debugger3 = DTE.Debugger
Dim exSettings As EnvDTE90.ExceptionSettings = dbg.ExceptionGroups.Item("Common Language Runtime Exceptions")
Dim exSetting As EnvDTE90.ExceptionSetting = exSettings.Item("System.Data")
If exSetting.BreakWhenThrown Then
exSettings.SetBreakWhenThrown(False, exSetting)
Else
exSettings.SetBreakWhenThrown(True, exSetting)
End If