Is there any way to log or print the information of Visual Studio parallel stack window?
I have a c# multithreading application running in production that is experiencing an issue without leaving any clue. It seems to be a deadlock of something like that but I cannot replicate it in a development environment.
So I think it would be very helpful if I can log to a file the status of the app (the running threads and their call stack) when I detect programmatically that the issue is happening.
Thanks in advance
Edit: Thanks to the answers and after investigating I have found that the best option is to generate a memory dump and load it in Visual Studio. However, I have a new problem... I am using createdump
for doing that and it works on a .Net process, but the thing is that the process we have in production is a java process that uses a .Net library with JNI, so createdump
is not working for that process. Any ideas about how to handle that?
The error I am receiving is: open(/proc/69588/mem) FAILED 13 (Permission denied)