Platform SDK: Exchange Server |
Running your service as a console application will not be useful if problems appear only when the application is run as a service. In this case, the best way to debug it is to start the application as a service and attach to the Visual C++ debugger while the service is running. To do this, start the service, obtain the process identifier, and then connect the debugger to the running process.
To find the process identifier and connect to the Visual C++ debugger
Caution This utility is not identical with the utility of the same name distributed with Microsoft Visual C++ and the Platform SDK. It is an extended version with more functionality. The correct version displays the window title Process Explode, rather than Process Viewer.
START MSDEV /P nnn
where nnn is the process identifier in decimal or hexadecimal notation.