Created
March 27, 2011 11:01
-
-
Save franciscoj/889122 to your computer and use it in GitHub Desktop.
A small ruby script to show how the ruby-debug works.
This file contains 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 characters
[-4, 5] in /projects/889122/small_script.rb | |
=> 1 dude = true | |
2 | |
3 if dude | |
4 puts "Hey dude" | |
5 else | |
/projects/889122/small_script.rb:1 | |
dude = true | |
(rdb:1) |
This file contains 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 characters
ruby-debug help v0.10.4 | |
Type 'help <command-name>' for help on a specific command | |
Available commands: | |
backtrace delete enable help method putl set trace | |
break disable eval info next quit show undisplay | |
catch display exit irb p reload step up | |
condition down finish kill pp restart thread var | |
continue edit frame list ps save tmate where |
This file contains 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 characters
(rdb:1) help next | |
n[ext][+-]?[ nnn] step over once or nnn times, | |
'+' forces to move to another line. | |
'-' is the opposite of '+' and disables the force_stepping setting. | |
(rdb:1) _ |
This file contains 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 characters
dude = true | |
if dude | |
puts "Hey dude" | |
else | |
puts "Hello world" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment