Debugging services are an absolute pain in the ass. Literally. Mostly you
cannot begin debugging them until all the really interesting stuff has
completed, since your mainly dependent upon being able to attach to the
service and you can't do that until it is attached. The VS documentation
will get you there, and check newsgroup archives here and on the NtDev list.
I asked the same question about a year ago and received some good
information. However, I haven't used it for about a year so it's stale and I
don't remember all the gooey details. Search the archives for my name and
you should get some hits.
--
The personal opinion of
Gary G. Little
Post by Ashutosh PorwalDoes anyone know of any books on the same or even some good links shall do
the same?
Ashutosh
Hello zhang,
Post by zhangThank you
Post by ArniePost by zhangany advice or any books to introduce?
or give me a simple introduction?
Assuming the service is your project, build it in debug mode. Open
the project. Set any breakpoints that you want to set. Use the SCM
to start the service. Use Tools->Attach to process.
- Arnie