谢谢。您将需要“Debugger3”接口http://msdn.microsoft.com/en-us/library/envdte90.debugger3.aspx。以下是一个快速的片段,以防博客关闭:
子断点抛出(可选ByVal strException As String =“”)
Dim dbg As Debugger3 = DTE.Debugger
Dim eg As ExceptionSettings =
dbg.ExceptionGroups.Item("Common Language Runtime Exceptions")
eg.SetBreakWhenThrown(True, eg.Item(strException))
End Sub - Aaron Hoffman