Rocky,
This sounds great. I'm having trouble getting it to work however.
When I run rdebug in emacs I get this:
rdebug:136:in `debug_load': no such file to load -- 3 (LoadError)
I'm passing in the default options -- 'rdebug --emacs 3 foo.rb'. It
seems that rdebug-core.el is passing '3' as the name of the ruby
script to rdebug. If I remove the '3' and run it as 'rdebug --emacs
foo.rb' I get a lisp error: ' (wrong-type-argument stringp nil)'. If
I just run it as 'rdebug foo.rb' it sort of works but it doesn't
display the current line of code in the source window, no breakpoints,
variable are displayed, etc.
I'm guessing I'm doing something stupid....
Steve
On Jun 11, 6:41 pm, "Rocky Bernstein" <
rocky.bernst...@gmail.com>
wrote:
> Recently Anders Lindgren and I (but mostly Anders) has been working on the
> emacs ruby-debug interaction.
> ruby-debug-extra-0.10.1.tar.gz<.%20
http://rubyforge.org/frs/download.php/35222/ruby-debug-extra-0.10.1.t...>is
> a tar of these GNU Emacs files (along with the latest manual for
> ruby-debug 0.10.1). I find it good enough for now, although it has quirks. I
> invite others to try out and/or join in the development.
>
> There are two modes of interaction. The one Anders uses is where rdebug is
> called initially from emacs this sets up a number of windows for the
> buffers. There are buffers for the call stack, a source code, a
> variables/values, breakpoints, command and an output. Some of these are
> shown and some aren't. I tend to work in a more reduced mode where all I
> want to see is the command, source, stack and variables. So I have output
> shown in the command buffer. Anders likes to hide the command buffer opting
> for short-keystrokes which issue "step", "next" continue. And he has output
> shown separated from the command buffer in a different window.
>
> The other mode of interaction I use all the time is a very reduced mode
> where I go into a shell and run rdebug-track-mode (via
> "turn-on-rdebug-track-mode"). I use it in rails as well.
>
> In this mode when there is a debugger prompt in the process-buffer a filter
> triggers and shows the source in another window of a split frame. If you are
> familiar with Python, it's like pdbtrack.
>
> For unit testing I've been using
> elk-test.el<
http://nschum.de/src/emacs/elk-test/>It's not fancy but it