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 <><
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.