Does anyone know if this is possible? I’m trying to debug a file that is
started using script/runner, but breakpoints don’t seem to be honored
here.
Is there a way to make them or some alternative?
Thanks!
Jake
Does anyone know if this is possible? I’m trying to debug a file that is
started using script/runner, but breakpoints don’t seem to be honored
here.
Is there a way to make them or some alternative?
Thanks!
Jake
On 8/27/06, Jake C. [email protected] wrote:
Does anyone know if this is possible? I’m trying to debug a file that is
started using script/runner, but breakpoints don’t seem to be honored here.
Is there a way to make them or some alternative?
Answering my own question here…I was able to get ruby-debug to work
for
this by ensuring I called it as such:
/usr/bin/rdebug -s -n -w – script/runner $MYCMD
Note the – (double hyphens) to cause rdebug to stop interpreting option
flags (so that you can pass flags to script/runner.
Hope this helps someone else.
Jake
On 8/27/06, Jake C. [email protected] wrote:
/usr/bin/rdebug -s -n -w – script/runner $MYCMD
Forgot to mention…the above sets the debugger to run detached. After
your
command has executed, type “rdebug -c” in another terminal to connect to
the
daemon.
Jake
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs