I'm having trouble with real time debugging of a Windows service on a remote machine. This machine is behind a firewall only accessible through remote desktop. I include Debug.WriteLine statements through my code, in lieu of Console.WriteLine. Not too long ago I ran across an application from Microsoft named Debug View. It has been helpful in debugging Forms and WPF applications but it will not show the Debug.WriteLine statements for a running service. I would be extremely happy if I could see these debug statements. Is there a way to do this?
Note, the project is compiled in debug mode as I can see the debug statements in Debug View during the service installation.
Run
Debug View
asAdministrator
, select theCapture
menu, then make sure thatCapture Global Win32
is checked. That will captureDebug.WriteLine
output from your service (and any other service as well). You may want to use a filter to preventDebug View
from displaying output you are not interested in. Consider prefixing your service debug messages with your service name so that you can filter for them.