Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to debug services via remote desktop?

96 views
Skip to first unread message

yei...@gmail.com

unread,
Apr 28, 2009, 1:09:17 PM4/28/09
to
Hi,

I am trying to debug a service app so I configured service using
gflags and I turned on "Interactive".
Yet, I noticed that I can get the windbg windows because I am
connected to the machine via RDP.

Is there any way I can redirect windbg to RDP session or is there any
other approach?
Any help will be very much appreciated. Thank you.

Ilho <><

yei...@gmail.com

unread,
May 1, 2009, 3:53:42 PM5/1/09
to

I found an answer by myself but I wanted to post it here to share with
everyone.

The trick is to use "cdb" for non-interactive service and use windbg
as a client.

So first start up gflags and specify the executable name you want to
debug and you need to specify the following for debugger.

C:\Program Files\Debugging Tools for Windows (x64)\cdb.exe -server
tcp:port=9999 -o

Once this step is done, start the service as you normally do and start
up windbg.

Then click ctrl-R and click browse.

In my case I am debugging on the same machine so I typed localhost and
there I see one entry for my service.
From then on, just click ok and ok and you should be able to see
windbg session and begin to debug.
HTH.

0 new messages