470,596 Members | 1,353 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

Attaching a Process to the VS Debugger

Here I am back with the same question again.

I am trying to attach my process to the .NET Debugger to debug my process.
and I am using the folliwng code.

if ( !(applicationObject.Debugger.DebuggedProcesses == null) )
// My process ID
int processId = ((ExtensibilityEngine)m_ExtensibilityEngine).Proce ssID;
foreach(Process p1 in applicationObject.Debugger.DebuggedProcesses )
if ( p1.ProcessID == processId )
foreach(Process p1 in applicationObject.Debugger.LocalProcesses)
if ( p1.ProcessID == processId)
// Attach the ExEngine Object to the VS.NET Debugger
applicationObject.DTE.Debugger.CurrentProcess = p1;
This code works well.
But the problem is it is very slow.
It is taking all the Debugging options such as CLR, Native, MS SQL, Script
and hence it is very slow because Native debugging is always slow.
Is there any way that we can specify one or more of the 4 options

Nov 16 '05 #1
0 1437

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Manfred Braun | last post: by
reply views Thread by Jim Heavey | last post: by
2 posts views Thread by Chris Dunaway | last post: by
3 posts views Thread by Brett Romero | last post: by
3 posts views Thread by =?Utf-8?B?UGhpbCBKb2huc29u?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.