Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Add a "pry" command to the 'debugger' gem
Branch: master
Pull request Compare This branch is 7 commits ahead of AndrewO:master.
Latest commit 8537d5 @banister banister version bump


This gem adds a pry command to the debugger gem enabling you to bring up a pry console during your session. It is similar to debugger's built-in irb command.

To see it in action, run ruby examples/foo.rb and type "pry" at the debug prompt.

To use it in a project, add this to your Gemfile:

gem "debugger-pry", :require => "debugger/pry"

For more information on pry, read this article.


(rdb:1) help
ruby-debug help v1.1.3
Type 'help <command-name>' for help on a specific command

Available commands:
backtrace  delete   enable  help  list    pry     restart  source  undisplay
break      disable  eval    info  method  ps      save     step    up       
catch      display  exit    irb   next    putl    set      thread  var      
condition  down     finish  jump  p       quit    show     tmate   where    
continue   edit     frame   kill  pp      reload  skip     trace 

(rdb:1) pry

Frame number: 0/11

From: foo.rb @ line 14 :

     9:   end
    10: end
    12: foo =
    13: debugger
 => 14: += 10

[1] (pry) main: 0> 


Based on the work of Andrew O'Brien

Something went wrong with that request. Please try again.