Technote (troubleshooting)
Problem(Abstract)
Something to watch out for when using Interactive Debug with an NT Service app
Resolving the problem
The only tricky bit about using Interactive Debug with an NT Service app is that you need to get the service registered before the service startup times out. This means that the usual trick of putting a halt in the Application Entry Point field of the packager panel (i.e. MyServiceApp halt;
myRealStartupMethod) to initially open the debugger won't work. Insytead, you should implement an alternative startup method (myRealStartupMethodWithAHaltInIt) that does a self halt after registering the service.
Try this by packaging the AbtNtServiceExampleApp with Interactive Debug and running it. You should see the debugger.
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.