C
Chris Dunaway
I am using the following code in a macro to attach to a process:
Dim sFilename As String = "progname.exe"
Dim proc As EnvDTE.Process
For Each proc In DTE.Debugger.LocalProcesses
If (Right(proc.Name, sFilename.Length) = sFilename) Then
proc.Attach()
attached = True
Exit For
End If
Next
Progname.exe is a VB.Net program compiled in Debug mode.
When it runs, I get an error message that says: "Unmanaged Debugging Not
Available"
How do I attach to a managed program using a macro?
Dim sFilename As String = "progname.exe"
Dim proc As EnvDTE.Process
For Each proc In DTE.Debugger.LocalProcesses
If (Right(proc.Name, sFilename.Length) = sFilename) Then
proc.Attach()
attached = True
Exit For
End If
Next
Progname.exe is a VB.Net program compiled in Debug mode.
When it runs, I get an error message that says: "Unmanaged Debugging Not
Available"
How do I attach to a managed program using a macro?