-2

How can I use Mdbg.exe or ICorDebug to print stack traces of all running threads of a process programmatically in c#?

thanks.

mkus
  • 3,357
  • 6
  • 37
  • 45

2 Answers2

2

There is an example of this in the C# source for Red Flag's "Dump Stacks" functionality. http://redflagdebugger.codeplex.com/

Wonko
  • 331
  • 1
  • 5
-2

I found the solution. I downloaded CLR Managed Debugger (mdbg) Sample 4.0 with source code. I changed some source code lines to use it according to my needs.

mkus
  • 3,357
  • 6
  • 37
  • 45