I found the following code snippet in the help but it doesn't seem to
compile.
Dim debugger As EnvDTE.Debugger
Dim IsDebugging As Boolean
debugger = DTE.Debugger
If (debugger Is Nothing) Then
MsgBox("Debugger doesn't exist! Fatal error.")
IsDebugging = False
Else
IsDebugging = (debugger.CurrentMode <>
dbgDebugMode.dbgDesignMode)
End If
I'm getting an error on "DTE.Debugger" saying "Reference to a non-shared
member requires an object reference."
So what did Microsoft leave out? Is there a different way to do this that's
better?
Thanks in advance for the help.
Tom P.