views:

146

answers:

2

I'd like to build a client for dbgsrv.exe. I'd like to know if there's a spec on the protocol that it uses and if there are any (open source?) libraries that are able to communicate with it for a remote debugging session.

A: 

Edit: See https://www.blackhat.com/presentations/bh-usa-07/Stewart/Presentation/bh-usa-07-stewart.pdf for a presentation that seems to describe the protocol.

Also browsing through the source code of ReactOS, seems to have a some of the implementation of the protocol. Also Microsoft Research's Singularity OS may have a debugger available in source. I know most of the OS is managed, however it will I suspect have the source code for its remote debugger communication.

Microsoft MDBG is a managed debugger with source . This may have the answer

Preet Sangha
Great answer. But I don't think it'll work for me (forgot to mention, need to use it to debug native x64 applications). Thanks, though!
devviedev
A: 

There's at least one summary of debugger internals and the serial protocol on the net.

Jerry Coffin