June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to debug a Windows service in Visual Studio .NET (watch debug messages, use variable watches and breakpoints, and so on).
Start the Windows service through the SCM as you would ordinarily, and attach the Visual Studio .NET debugger manually.
You can’t run a Windows service from the Visual Studio .NET integrated development environment (IDE) because Windows services can be executed only by the SCM. However, you can start the Windows service through the SCM, and then attach the debugger.
To debug a Windows service, follow these steps:
Load the source code for the project into Visual Studio .NET.
Install the service if necessary, and then start it using the Computer Management console. (See recipe ...
Read now
Unlock full access