Skip to content

Instantly share code, notes, and snippets.

@lfender6445
Last active March 6, 2026 09:32
Show Gist options
  • Select an option

  • Save lfender6445/9919357 to your computer and use it in GitHub Desktop.

Select an option

Save lfender6445/9919357 to your computer and use it in GitHub Desktop.

Revisions

  1. lfender6445 revised this gist Dec 8, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ Debugger
    - `edit Class` -- Open file in $EDITOR
    - `edit Class#instance_method` -- Open file in $EDITOR
    - `<ctrl+r>` -- Search history
    - `_out_` -- Array of all outputs values, also _in_
    - `_out_` -- Array of all outputs values, also `_in_`
    - `cd <var>` -- Step into an object, change the value of self
    - `cd ..` -- Take out of a level
    - `binding.pry` -- Breakpoint
  2. lfender6445 revised this gist Dec 8, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ Debugger
    - `_` -- Last eval
    - `? <Object>` -- Shows more information (doc) about an object, or method
    - `_file_` -- Represent the last file Pry touched
    - `wtf?` -- Print the stack trace, same as _ex_.backtrace
    - `wtf?` -- Print the stack trace, same as `_ex_.backtrace`
    - `$` -- Show source, shortcut for show-source
    - `edit Class` -- Open file in $EDITOR
    - `edit Class#instance_method` -- Open file in $EDITOR
  3. lfender6445 revised this gist Dec 8, 2015. 1 changed file with 30 additions and 30 deletions.
    60 changes: 30 additions & 30 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -4,37 +4,37 @@

    Command Line

    - pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
    - pry -r ./config/environemtn.rb - load your rails into a pry session
    - `pry -r ./config/app_init_file.rb` - load your app into a pry session (look at the file loaded by config.ru)
    - `pry -r ./config/environment.rb` - load your rails into a pry session

    Debugger
    - help ls -- Display command options for pry command ls
    - ls <Object> -- Show all of the available methods that can be called by an object
    - _ -- Last eval
    - ? <Object> -- Shows more information (doc) about an object, or method
    - _file_ -- Represent the last file Pry touched
    - wtf? -- Print the stack trace, same as _ex_.backtrace
    - $ -- Show source, shortcut for show-source
    - edit Class -- Open file in $EDITOR
    - edit Class#instance_method -- Open file in $EDITOR
    - <ctrl+r> -- Search history
    - _out_ -- Array of all outputs values, also _in_
    - cd <var> -- Step into an object, change the value of self
    - cd .. -- Take out of a level
    - binding.pry -- Breakpoint
    - edit --ex -- Edit the file where the last exception was thrown
    - .<Shell> -- Runs the <Shell> command
    - whereami -- Print the context where the debugger is stopped
    - whereami 20 -- Print the context 20 lines where the debugger is stopped
    - ; -- Would mute the return output by Ruby
    - play -l -- Execute the line in the current debugging context
    - `help ls` -- Display command options for pry command ls
    - `ls <Object>` -- Show all of the available methods that can be called by an object
    - `_` -- Last eval
    - `? <Object>` -- Shows more information (doc) about an object, or method
    - `_file_` -- Represent the last file Pry touched
    - `wtf?` -- Print the stack trace, same as _ex_.backtrace
    - `$` -- Show source, shortcut for show-source
    - `edit Class` -- Open file in $EDITOR
    - `edit Class#instance_method` -- Open file in $EDITOR
    - `<ctrl+r>` -- Search history
    - `_out_` -- Array of all outputs values, also _in_
    - `cd <var>` -- Step into an object, change the value of self
    - `cd ..` -- Take out of a level
    - `binding.pry` -- Breakpoint
    - `edit --ex` -- Edit the file where the last exception was thrown
    - `.<Shell>` -- Runs the <Shell> command
    - `whereami` -- Print the context where the debugger is stopped
    - `whereami 20` -- Print the context 20 lines where the debugger is stopped
    - `;` -- Would mute the return output by Ruby
    - `play -l` -- Execute the line in the current debugging context

    pry-nav
    - next -- execute next line
    - step -- step into next function call
    - continue -- continue through stack
    ## pry-nav
    - `next` -- execute next line
    - `step` -- step into next function call
    - `continue` -- continue through stack

    pry-rescue
    - rescue rspec -- break on exception in rspec
    - rescue rails server -- break on exception in rails server
    - try-again -- run last failing spec, reloads the file not the enviornment
    ## pry-rescue
    - `rescue rspec` -- break on exception in rspec
    - `rescue rails server` -- break on exception in rails server
    - `try-again` -- run last failing spec, reloads the file not the enviornment
  4. lfender6445 revised this gist May 13, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Pry Cheat Sheet
    # Pry Cheat Sheet

    - [Youtube Tutorial 2013](https://www.youtube.com/watch?v=D9j_Mf91M0I)

  5. lfender6445 revised this gist Apr 3, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -15,8 +15,8 @@ Debugger
    - _file_ -- Represent the last file Pry touched
    - wtf? -- Print the stack trace, same as _ex_.backtrace
    - $ -- Show source, shortcut for show-source
    - edit <Method> -- Open file in $EDITOR
    - edit <Class> -- Open file in $EDITOR
    - edit Class -- Open file in $EDITOR
    - edit Class#instance_method -- Open file in $EDITOR
    - <ctrl+r> -- Search history
    - _out_ -- Array of all outputs values, also _in_
    - cd <var> -- Step into an object, change the value of self
  6. lfender6445 revised this gist Apr 1, 2014. No changes.
  7. lfender6445 revised this gist Apr 1, 2014. No changes.
  8. lfender6445 revised this gist Apr 1, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    Pry Cheat Sheet

    - [Youtube Tutorial 2013](https://www.youtube.com/watch?v=D9j_Mf91M0I)

    Command Line

    - pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  9. lfender6445 revised this gist Apr 1, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    Pry Cheat Sheet

    Command Line

    - pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  10. lfender6445 revised this gist Apr 1, 2014. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -8,11 +8,11 @@ Debugger
    - ls <Object> -- Show all of the available methods that can be called by an object
    - _ -- Last eval
    - ? <Object> -- Shows more information (doc) about an object, or method
    - cat <File> -- Display the content of a file
    - _file_ -- Represent the last file Pry touched
    - wtf? -- Print the stack trace, same as _ex_.backtrace
    - $ -- Show source, shortcut for show-source
    - edit <Method> -- Open file in $EDITOR, change file are auto reloaded
    - edit <Method> -- Open file in $EDITOR
    - edit <Class> -- Open file in $EDITOR
    - <ctrl+r> -- Search history
    - _out_ -- Array of all outputs values, also _in_
    - cd <var> -- Step into an object, change the value of self
    @@ -25,6 +25,11 @@ Debugger
    - ; -- Would mute the return output by Ruby
    - play -l -- Execute the line in the current debugging context

    pry-nav
    - next -- execute next line
    - step -- step into next function call
    - continue -- continue through stack

    pry-rescue
    - rescue rspec -- break on exception in rspec
    - rescue rails server -- break on exception in rails server
  11. lfender6445 revised this gist Apr 1, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ Command Line
    - pry -r ./config/environemtn.rb - load your rails into a pry session

    Debugger

    - help ls -- Display command options for pry command ls
    - ls <Object> -- Show all of the available methods that can be called by an object
    - _ -- Last eval
    - ? <Object> -- Shows more information (doc) about an object, or method
  12. lfender6445 revised this gist Apr 1, 2014. 1 changed file with 31 additions and 18 deletions.
    49 changes: 31 additions & 18 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,31 @@
    ls <Object> -- Show all of the available methods that can be called by an object
    _ -- Last eval
    ? <Object> -- Shows more information (doc) about an object, or method
    cat <File> -- Display the content of a file
    _file_ -- Represent the last file Pry touched
    wtf? -- Print the stack trace, same as _ex_.backtrace
    $ -- Show source, shortcut for show-source
    edit <Method> -- Open file in $EDITOR, change file are auto reloaded
    <ctrl+r> -- Search history
    _out_ -- Array of all outputs values, also _in_
    cd <var> -- Step into an object, change the value of self
    cd .. -- Take out of a level
    binding.pry -- Breakpoint
    edit --ex -- Edit the file where the last exception was thrown
    .<Shell> -- Runs the <Shell> command
    whereami -- Print the context where the debugger is stopped
    ; -- Would mute the return output by Ruby
    play -l -- Execute the line in the current debugging context
    Command Line

    - pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
    - pry -r ./config/environemtn.rb - load your rails into a pry session

    Debugger

    - ls <Object> -- Show all of the available methods that can be called by an object
    - _ -- Last eval
    - ? <Object> -- Shows more information (doc) about an object, or method
    - cat <File> -- Display the content of a file
    - _file_ -- Represent the last file Pry touched
    - wtf? -- Print the stack trace, same as _ex_.backtrace
    - $ -- Show source, shortcut for show-source
    - edit <Method> -- Open file in $EDITOR, change file are auto reloaded
    - <ctrl+r> -- Search history
    - _out_ -- Array of all outputs values, also _in_
    - cd <var> -- Step into an object, change the value of self
    - cd .. -- Take out of a level
    - binding.pry -- Breakpoint
    - edit --ex -- Edit the file where the last exception was thrown
    - .<Shell> -- Runs the <Shell> command
    - whereami -- Print the context where the debugger is stopped
    - whereami 20 -- Print the context 20 lines where the debugger is stopped
    - ; -- Would mute the return output by Ruby
    - play -l -- Execute the line in the current debugging context

    pry-rescue
    - rescue rspec -- break on exception in rspec
    - rescue rails server -- break on exception in rails server
    - try-again -- run last failing spec, reloads the file not the enviornment
  13. lfender6445 created this gist Apr 1, 2014.
    18 changes: 18 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    ls <Object> -- Show all of the available methods that can be called by an object
    _ -- Last eval
    ? <Object> -- Shows more information (doc) about an object, or method
    cat <File> -- Display the content of a file
    _file_ -- Represent the last file Pry touched
    wtf? -- Print the stack trace, same as _ex_.backtrace
    $ -- Show source, shortcut for show-source
    edit <Method> -- Open file in $EDITOR, change file are auto reloaded
    <ctrl+r> -- Search history
    _out_ -- Array of all outputs values, also _in_
    cd <var> -- Step into an object, change the value of self
    cd .. -- Take out of a level
    binding.pry -- Breakpoint
    edit --ex -- Edit the file where the last exception was thrown
    .<Shell> -- Runs the <Shell> command
    whereami -- Print the context where the debugger is stopped
    ; -- Would mute the return output by Ruby
    play -l -- Execute the line in the current debugging context