Visual Studio C # Remote Debugging Close Windows Service

Im debugging my windows service occasionally from my computer when actually the windows service is on another remote server. Im using a visual studio remote debugger to do this and then connecting my source to the service, connecting to the server using

tools -> attach to process -> qualifier = server ip

The problem is that whenever I lose connection with the server due to an error on the Internet or the like, the Windows server stops and closes on my server and I have to start it again.

Perhaps I did not provide enough information, so please ask him, not vote.

TIA.

+5
source share
1 answer

Check Event Viewer on the remote server. There should be an entry in the application log if the service crashed. If you need more information, you can make Windows Error Reporter capture the failure of a service failure. Details here: http://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx

GitHub recommends this as a debugging procedure for its Windows client. You can take a .reg file here and configure it to match your path / executable. https://help.github.com/articles/getting-a-crash-dump/

Then you can bring the .dmp file to your computer and check it in Visual Studio / Windbg / SOS http://msdn.microsoft.com/en-us/library/d5zhxt22.aspx http://msdn.microsoft.com/en -us / library / windows / hardware / ff540665 (v = vs. 85) .aspx

+1
source

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


All Articles