How can I use Mdbg.exe or ICorDebug to print stack traces of all running threads of a process programmatically in c#?
thanks.
How can I use Mdbg.exe or ICorDebug to print stack traces of all running threads of a process programmatically in c#?
thanks.
There is an example of this in the C# source for Red Flag's "Dump Stacks" functionality. http://redflagdebugger.codeplex.com/
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.