Welcome to MSDN Blogs Sign in | Join | Help

MDbg (RSS)

Information specific about MDbg, our managed debugger written in C#.

Mdbg (C# debugger in C#) source sample updated

We've just updated the MDbg sample! This is a full source sample for building a managed debugger in C#. It's available here . (This is the same link as before. If it brings up version 1.0, just try refreshing the page until you get mdbgSample 21 .EXE).
Posted by jmstall | 5 Comments
Filed under:

Fixing the MDbg / Iron Python extension...

A while ago, we had a sample of Mdbg-Python extension that let you use python to script MDbg. It was based off a pre-release Iron Python, and things have since broken. We updated at least once to keep up with the breaks. We're aware of the problems and
Posted by jmstall | 0 Comments
Filed under:

Working on managed wrappers for Native Debugging API

FWIW, I've been working on some managed wrappers for the native debugging API ( kernel32!WaitForDebugEvent ,etc) My goals are: Make it extremely easy to use the native debugging API. Maintain fidelity to the native debug API. I didn’t want a super thick
Posted by jmstall | 12 Comments
Filed under:

How to build Mdbg apps

I often publish little samples in this blog based off MDbg (which generally show off the debugging services in some way; such as app to convert Pdb-->XML , or this harness to print all exceptions in an app ). I generally call these apps "harnesses"
Posted by jmstall | 1 Comments
Filed under: ,

Managed Stack Explorer

Check out: Managed Stack Explorer . It's a tool on CodePlex that lets you automatically get stack snapshots of V2 managed processes. Its debugging inspection functionality (viewing callstacks) is built on the CLR Debugging Services via ICorDebug, and
Posted by jmstall | 3 Comments
Filed under:

Felice Pollano: Integrating a debugger into Reflector

Felice Pollano is working on project to make merge Reflector (an IL-->C# decompiler) and Mdbg (a managed debugger). See here for details. I've said at many times this is possible, but have never had the cycles to go do it. (As a side note, there are
Posted by jmstall | 3 Comments
Filed under:

Why doesn't MDbg use generics?

If you've looked at the MDbg sources, you'll notice it looks a lot like a V1.1 app. There are few to no V2 (Whidbey) concepts in there: few anonymous delegates, very little (if any?) generics, no 'yield' keyword. Since MDbg shipped in V2, why didn't we
Posted by jmstall | 3 Comments
Filed under:

Jan is on MSDN TV talking about MDbg

Jan Stranik is on MSDN TV talking about MDbg , the managed-debugging sample written in C#. See the video here . Jan wrote most of MDbg, and handle a lot of hard problems about getting a working debugger in managed code. He gives a brief overview of managed-debugging
Posted by jmstall | 0 Comments
Filed under: ,

MDbg, Managed-debugging, and 64 bit

V2 CLR added support for 64-bit (amd64 and ia64), and that includes managed-debugging support. So a 64-bit MDbg can debug a 64-bit managed app. But what about cross-platform stuff when your debugger and debuggee are different platforms? Here's how MDbg

Sample Mdbg extension

Here is a template for playing around with an extension for the MDbg sample (Mdbg is the managed debuggeer written in C#). It adds an "Addition" command to MDbg that adds two numbers. Not very exciting, but it shows the plumbing. You can download the
Posted by jmstall | 4 Comments
Filed under:

MDbg UI Threading, round 2

The STA/MTA threading problem is (hopefully) fixed in the latest MDbg winforms Gui . (which also has some cool new features, including an IL disassembly window ) The original solution implemented in the original GUI (described here ) had the problem that
Posted by jmstall | 2 Comments
Filed under:

Mdbg IronPython Extension updated for Beta 1

You probably heard that Iron Python Beta 1 was released . It has a small (but very worthy) breaking change, and I've updated the MDbg-IronPython extension accordingly. I updated it previously for 0.9.3 . The changes are related to redirecting the python
Posted by jmstall | 1 Comments
Filed under:

MDbg sample is updated for VS2005 RTM

We've updated the MDbg source sample ( download here ) for Visual Studio 2005. This latest round of updates includes an integrated IL view , making the UI thread STA, fixing some build problems with VS2005 RTM and C# Express. It took me under 3 minutes
Posted by jmstall | 2 Comments
Filed under:

Tool to get snapshot of managed callstacks

I wrote a simple tool to take a snapshot of a running managed process and dump the output as an XML file. I'll post the full source as a sample on MSDN. [ Update 6/26/06] After great delay, source posted here . Also, check out Managed Stack Explorer ,
Posted by jmstall | 14 Comments
Filed under: ,

Writing a debugger in VB

Some might consider writing a managed debugger in VB.Net to be an oxymoron . But maybe not. Here's a VB.Net snippet that serves as a highly-specialized debugger to launch an app and print all the modules that get loaded. This is adapted from the C# sample
Posted by jmstall | 1 Comments
More Posts Next page »
 
Page view tracker