Shaykatc's WebLog

VS 2003 Tip #15: Attaching devenv to a process from the command line.

Ziv posted: “I've often wondered how to do the equivalent of "windbg -pn ProcessName" in VS.NET. Is it possible?”

I dont know of a way to attach a devenv via a command line to a process by name, but I do know how to do it by Process ID (PID). Just run the following command from a command shell: vs7jit.exe -p PID. Click “Yes” to debug with a new instance of VS7.1. Then follow through the events to attach your Everett shell to the process to debug it natively or with managed code.

I just spoke to Gregg about this too, and he got that maniacal look in his eye and started telling me ways to script this or use an exe project to do this. When Gregg gets that look, I normally step away, clear the decks so that his brain can operate at full speed with no distractions and pretty much let him say or do what he wants. His net net was that he was going to blog about it, so check out http://weblogs.asp.net/greggm soon for more info on this.

Hope that helps.

Published Monday, April 19, 2004 1:59 PM by shaykatc

Comments

 

Ziv Caspi said:

Yes, I know how to do it a process ID. Using the executable name, however, is infinitely nicer. For example, instead of writing a script to identify the process ID of a service by parsing the output of tlist, you can just attach by name. Or use WinDBG instead, which is whay I do today.
April 22, 2004 6:18 AM
 

greggm's WebLog said:

April 22, 2004 5:35 PM
 

greggm's WebLog said:

April 22, 2004 5:39 PM
 

Code/Tea/Etc... said:

April 25, 2004 3:07 AM
 

出国留学 said:

attach your Everett
April 28, 2004 10:00 PM
 

Porcelain Insulator said:

you can just attach by name
July 14, 2004 9:05 PM
 

women garments said:

good!
July 19, 2004 8:56 PM
 

electric power tools said:

good!
July 25, 2004 8:39 PM
 

e-scooters said:

thank you!
July 30, 2004 12:33 AM
 

gas scooters said:

good
August 2, 2004 8:11 AM
New Comments to this post are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker