.NET application freezes and I cannot debug it

I am working on a C # multithreaded server for Syslog. I am trying to perform a long-term experiment, but found that after an hour the server freezes (after a while, registration ends).

I tried to run it in mode Debugin Visual Studio, and when I found it hanging and tried to press Pause to get useful information about where the threads were, Visual Studio reported that the remote debug monitor was broken. This is a local application.

What can I do to pause the process and get useful thread status information?

+3
source share
3 answers

WinDBG - , VS . : Windows

0

, .

( ), (WinDbg Visual Studio ).

+3

StingyJack, , Debug.WriteLine() Sysinternal DebugView , .

Here I will start. VS is not efficient enough to help you debug multi-threaded service. Sometimes it can even lie on the state of objects and keep in mind when you debug, you disrupt the normal flow of events.

+1
source

Source: https://habr.com/ru/post/1777456/


All Articles