1

I wish to build a small debugger in C# that allows me to attach to another c# project and debug it.
I believe Microsoft has a dll that allows me to do this.

For example if I know the code in the target process then I can look for certain Classes and interrogate them etc and look at their member variables etc.

What is this Microsoft dll called??

2
  • Why dont you use the build in Debugger attach to process? Commented Jul 29, 2015 at 18:16
  • I disagree with the close vote: IMHO this question is not a recommendation issue for a tool or library, OP is looking for the one and only Microsoft DLL. Commented Jul 29, 2015 at 18:20

1 Answer 1

1

It is called the debugger engine and resides in dbgeng.dll. However, this is not a managed DLL.

For .NET, there is also MDbg, but it doesn't have as many features.

Also note: you can get information about objects and member variables, but it may fail to get local variables on the stack in Release mode if the code was optimized.

If you want to do similar things, e.g. to get familiar with the possibilities, you can try Microsoft's Debugger and the .NET extension .

First commands to get started with WinDbg and SOS:

.loadby sos clr
!dumpheap -stat
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.