remote debugging

is there a neat way to debug user mode applications /services etc .

My problem is, wen I try debugging event driven code on a local debugger, it
is very difficult. Can remote debugging be used ?

Which debugger should be used for it?

  • Developer

When debugging system processes such as services it’s best to use ntsd
because you can fully disable its UI.

ntsd -server <your_args> -noio

will start ntsd in pure-server mode with no UI. You can then connect to
that ntsd from a remote client for debugging. This would generally
require that some form of networking be working while you are debugging.

You can also do a lower-level form of remoting via dbgsrv, which lets
you run the full debugger elsewhere and just the dbgsrv stub on the
machine where the debuggee is. The documentation that comes with the
Windows Debuggers has more info on -server, -remote, dbgsrv and remoting
in general.

________________________________

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Developer
Sent: Thursday, October 27, 2005 4:16 AM
To: Kernel Debugging Interest List
Subject: [windbg] remote debugging

is there a neat way to debug user mode applications /services etc .

My problem is, wen I try debugging event driven code on a local
debugger, it is very difficult. Can remote debugging be used ?

Which debugger should be used for it?



- Developer — You are currently subscribed to windbg as: unknown
lmsubst tag argument: ‘’ To unsubscribe send a blank email to
xxxxx@lists.osr.com</your_args>

Copy the following files in c:\dbg (e.g) in the debugee.

dbgeng.dll
dbghelp.dll
dbgsrv.exe
decem.dll
srcsrv.dll
symbolcheck.dll
symsrv.dll

In case of using TCP port 1000.
From the debuggee, run the dbgsrv.exe like this. And that’s all.
debuggee> dbgsrv -t tcp:port=1000

From the debugger:
To create a new process in the remote machine: (windbg can be replaced with cdb)
debugger> windbg -premote tcp:server=,port=1000 c:\test\mytest.exe

To attach to a process:

debugger> windbg -premote tcp:server=,port=1000 -pn mytest.exe

Or just run,

debugger> windbg -premote tcp:server=,port=1000
and press F6 or File - Attach to a process to attach to a process.

Hopes this helps.

Regards,

Chesong Lee

________________________________

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Developer
Sent: Thursday, October 27, 2005 7:16 AM
To: Kernel Debugging Interest List
Subject: [windbg] remote debugging

is there a neat way to debug user mode applications /services etc .

My problem is, wen I try debugging event driven code on a local debugger, it is very difficult. Can remote debugging be used ?

Which debugger should be used for it?



- Developer — You are currently subscribed to windbg as: unknown lmsubst tag argument: ‘’ To unsubscribe send a blank email to xxxxx@lists.osr.com