Debugging a Windows NT Service
This article was previously published under Q170738 IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986 (http://support.microsoft.com/kb/256986/EN-US/) Description of the Microsoft Windows Registry SUMMARYDebugging a Windows NT service can be done in several ways. You can debug aservice while it is running by attaching to the process ID of the Servicethrough a debugger such as NTSD or WINDBG. You can also set Windows NT sothat it will start the process in a debugger when you start the service. These techniques are useful for different debug scenarios. This articlediscusses the steps that you need to take when you want to debug a serviceduring the initialization. MORE INFORMATIONWARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. In order to set up Windows NT so that it will start the Service in adebugger, the following registry key needs to be set during the Serviceinitialization:
For additional information about Windows NT debuggers, click the article number below to view the article in the Microsoft Knowledge Base: 121434 (http://support.microsoft.com/kb/121434/EN-US/) Specifying the Debugger for Unhandled User Mode Exceptions APPLIES TO
|
