Skip to content

Instantly share code, notes, and snippets.

View kalmbach's full-sized avatar
💻
programming

Jorge kalmbach

💻
programming
View GitHub Profile
@oscardelben
oscardelben / debugger.rb
Created July 6, 2012 15:56
Minimal debugger written in Ruby
class Foo
def speak
'hello'
end
end
my_proc = Proc.new do |event, file, line, id, binding, classname|
printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname
while cmd = gets.chomp do
if cmd == 'n'