Both Command Line based debuggers are very similar.
Python: http://docs.python.org/2/library/pdb.html :
# python -m pdb debugfile.py
Once in:
b (line #) – sets breakpoint
s – step into
n – next
c – continue
r – run til return
Ruby: http://www.tutorialspoint.com/ruby/ruby_debugger.htm :
# ruby -r debug debugfile.rb
Once in:
b (line #) – sets breakpoint
s – step into
n – next
c – continue