# .pdbrc
# dest = ~/.pdbrc # Keep this as the 2nd line for mmf_init_setup
# Python debugger aliases.

# Print a dictionary, sorted. %1 is the dict, %2 is the prefix for the names.
alias p_ for k in sorted(%1.keys()): print "%s%-15s= %-80.80s" % ("%2",k,repr(%1[k]))

# Print the member variables of a thing.
alias pi p_ %1.__dict__ %1.

# Print the member variables of self.
alias ps pi self

# Print the locals.
alias pl p_ locals() local:

# Listing after various commands
alias n n;;l
alias s s;;l
alias r r;;l
alias c c;;l

# List at the current point
alias l0 u;;d;;l

# Continue executing until the specified line.
alias nextto tbreak %1;;c
alias nt nextto %1

