Enumerating Managed Processes

I noticed Brad Abrams and Krzysztof Cwalina were  blogging about how to find a list of all the managed processes on a machine. Their solution involved looking for managed perf counters. The debugging APIs provide a more orthodox approach via the ICorPublish API (see corpub.idl in the SDK). ICorPublish is an unmanaged com-classic API, but…

8

Sample app to print loaded modules.

Here’s a simple C# sample tool that runs an app and prints the modules loaded. It’s effectively a highly simplified debugger and uses the ICorDebug debugging APIs as exposed by MDbg.   Here’s the code. [update: 1/26/05: updated code for final 2005 release of MDbg] You can create a a new console app, paste it in,…

6

Winforms gui on top of Managed debugger sample.

UPDATE: The source for this sample is now available here. Since this post is closed (it’s from Nov 2004), please direct comments to this post. The MDbg sample ships with some interesting extensions, including a simple winforms gui with some very basic features (gui.dll): –         opens source files in a MDI window. –         redirects console…

11

Problems for a managed debugger for v1.1?

Now that we’ve released a managed debugger sample for V2.0, people commonly ask “What about v1.1?”. I briefly touched on this when in a comment in the original MDbg post (http://blogs.msdn.com/jmstall/archive/2004/09/30/236281.aspx#245499). Here are more details: In theory, it’s doable, but there are some hurdles. Here are the biggest problems to back-porting MDbg to v1.1:1)       CLR…

11