Summary

[Previous] [Next]

This chapter covered some of the trials and tribulations that are a part of debugging Windows 2000 services and DLLs that load into services. Services have a special status in the operating system, and because of the security issues involved, you need to have an excellent understanding of what services are and how they behave. Service debugging takes more planning up front than most debugging.

The first step in debugging services and any DLLs that load into services is to debug as much of the core code as possible while running as a normal application. The second step is to ensure that you take advantage of the environment for services, such as by turning on interaction with the desktop and by using tools such as HandleEx to find the information you need to debug faster. Finally, if you're writing large, complicated services, as I described in the "Debugging for Real" section, you might want to consider using Compuware NuMega's SoftICE to assist in your debugging.



Debugging Applications
Debugging Applications for MicrosoftВ® .NET and Microsoft WindowsВ® (Pro-Developer)
ISBN: 0735615365
EAN: 2147483647
Year: 2000
Pages: 122
Authors: John Robbins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net