Benjamin Atkin

You've reached the non-topical blog of Benjamin Atkin.

breaking on Ctrl-C in ruby-debug (doesn’t yet work)

To break on Ctrl-C, launch the debugger, and use the catch command to catch the Interrupt exception.

(rdb:1) catch Interrupt
Catch exception Interrupt.
(rdb:1)

Now I know the command, but when I hit Ctrl-C when running Ruby On Rails, it doesn’t break into the debugger. It just stops the program.

I asked for an answer on Stack Overflow.

  1. batkin posted this