Start Rails console or server with debugger
When you require the Ruby debugger to be available from your Rails console (e.g. you want to inspect a method's magic), you need to enable it explicitly:
If you cannot access local variables etc, see this card.
For WEBrick, enable it similarly: