.net - Print thread stack of all threads of a process -
i have .net application button. when click button want application print thread stack of threads debug console.
is possible it?
datte.
you can use stacktrace class (system.diagnostics) stack trace of thread. you'd need enumerate threads, , (unfortunately) suspend them first, though.
here's constructor of interest: http://msdn.microsoft.com/en-us/library/t2k35tat.aspx
you may need create own threadpool implementation, or extend else's. far can see/tell there's no way enumerate them.
Comments
Post a Comment