Out-of-process debugging and syntax highlighting for trepanning debuggers

23 views
Skip to first unread message

Rocky Bernstein

unread,
Jan 17, 2011, 11:36:36 PM1/17/11
to ruby-d...@googlegroups.com
Some recent additions to the trepanning debuggers: Rubinius and patched MRI 1.9.2. 

First, I've added the out-of-process debugging. This allows a second process to connect to a program that has been debugged in a "server" mode. For now, this means the debugged program opens up a TCP socket and listens for a connection. Down the line, I'll probably add named pipes and serial communication lines as alternates to a TCP/IP sockets. 

The wire protocol is a little bit different from ruby-debug but at the API level it is the same. Or so I think.

The second change using the coderay and term-ansicolor gems, source listings ("list" command) or the location source displayed can be syntax colored.

The highlighting is done in the line-caching gem (rbx-linecache). I haven't ported this code over to the patched MRI 1.9.2, but will probably soon. 

Finally, I will add instructions on how to use on the Trepanning wikis. 

A few things are still a little more fragile than I'd like.

Reply all
Reply to author
Forward
0 new messages