-
-
Save Maikon/f3c66f7aea5deb129cc7ff7bd7228c23 to your computer and use it in GitHub Desktop.
Revisions
-
lfender6445 revised this gist
Dec 8, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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_` - `cd <var>` -- Step into an object, change the value of self - `cd ..` -- Take out of a level - `binding.pry` -- Breakpoint -
lfender6445 revised this gist
Dec 8, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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` - `$` -- Show source, shortcut for show-source - `edit Class` -- Open file in $EDITOR - `edit Class#instance_method` -- Open file in $EDITOR -
lfender6445 revised this gist
Dec 8, 2015 . 1 changed file with 30 additions and 30 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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/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 ## 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 -
lfender6445 revised this gist
May 13, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Pry Cheat Sheet - [Youtube Tutorial 2013](https://www.youtube.com/watch?v=D9j_Mf91M0I) -
lfender6445 revised this gist
Apr 3, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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 -
lfender6445 revised this gist
Apr 1, 2014 . No changes.There are no files selected for viewing
-
lfender6445 revised this gist
Apr 1, 2014 . No changes.There are no files selected for viewing
-
lfender6445 revised this gist
Apr 1, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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) -
lfender6445 revised this gist
Apr 1, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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) -
lfender6445 revised this gist
Apr 1, 2014 . 1 changed file with 7 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 - _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 - <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 -
lfender6445 revised this gist
Apr 1, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
lfender6445 revised this gist
Apr 1, 2014 . 1 changed file with 31 additions and 18 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,31 @@ 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 -
lfender6445 created this gist
Apr 1, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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