Ruby debugger list local variables

Short and sweet. You want to list local variables in ruby-debug? Try

info locals

You can also get ruby-debug to list your stack, instance variables, and much more. Type in plain old “info” into debugger to see a full list of what ruby-debug is willing to reveal to you.

Published by


Rails programmer and entrepreneur.

Leave a Reply

Your email address will not be published. Required fields are marked *