Does everyone have a Visual Studio shortcut / macro to switch breaks to processed / unhandled exceptions?

I am trying to write a macro by making an equivalent

  • Press Ctrl + Alt + E to open the Exceptions window.
  • Toggle text field in the 'throw' column for 'Common Language Runtime Exceptions'
  • Enable OK

If I write this, it writes only one macro line, which does nothing. Does anyone know how to do this?

+2
macros debugging visual-studio
Nov 27 '08 at 10:12
source share
2 answers

A similar question was posted and answered here . It works for all CLR exceptions and takes ~ 1.5 s to complete.

+2
Oct. 27 '09 at 14:06
source share

Late, and I did not test it, but does it help?

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 
-one
Dec 02 '08 at 23:03
source share



All Articles