Debugging a Windows NT ServiceLast reviewed: July 16, 1997Article ID: Q170738 |
The information in this article applies to:
SUMMARYDebugging a Windows NT service can be done in several ways. You can debug a service while it is running by attaching to the process ID of the Service through a debugger such as NTSD or WINDBG. You can also set Windows NT so that it will start the process in a debugger when you start the service. These techniques are useful for different debug scenarios. This article discusses the steps that you need to take when you want to debug a service during the initialization.
MORE INFORMATIONIn order to set up Windows NT so that it will start the Service in a debugger, the following registry key needs to be set during the Service initialization: WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.
For additional information on Windows NT debuggers, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q121652 TITLE : List of Debuggers Supported with Windows NT ARTICLE-ID: Q121434 TITLE : Specifying the Debugger for Unhandled User Mode Exceptions |
Keywords : NTSrvWkst
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |