Re: how to debug a service?
Sure you can debug service startup! Use gflags.exe to set up
the debugger for your service - it'll start as soon as the service
is started. (I know this is theory, but I haven't actually debugged
a service in this way myself...) You need to have Debugging
Tools for Windows installed on your machine:
http://www.microsoft.com/whdc/devtools/debugging/default.mspx
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Gary G. Little" <gary.g.little@seagate.com> wrote in message
news:4639ff4b$0$9279$88260bb3@news.teranews.com...
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
"Ashutosh Porwal" <ashutosh_porwal@yahoo.com> wrote in message
news:47d643ad40958c95b635ffb1c56@msnews.microsoft.com...
Does anyone know of any books on the same or even some good links shall
do the same?
Ashutosh
Hello zhang,
Thank you
"Arnie" <NoOne@home.now>
????????????:eMzWXt5SHHA.2188@TK2MSFTNGP03.phx.gbl...
"zhang" <makefriend8@163.com> wrote in message
news:%230DyItpSHHA.1212@TK2MSFTNGP03.phx.gbl...
any 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