Last active
April 8, 2018 02:21
-
-
Save davidvandusen/54088362f533445ae0c1 to your computer and use it in GitHub Desktop.
Debugging breakout notes
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
byebug guide: | |
https://github.com/deivid-rodriguez/byebug/blob/master/GUIDE.md | |
pry (byebug/irb alternative): | |
http://pryrepl.org/ |
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
require 'byebug' | |
def continue? | |
print 'Want the time? (yes/no) ' | |
answer = gets.chomp | |
answer == 'yes' | |
end | |
a = 'sumthin' | |
loop do | |
byebug | |
a = Time.now | |
puts a | |
break unless continue? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment