When processing produces a list, give each item its own element.
[dom-editor.git] / Dome / debug.py
blobbadf97c6664246b652ce866e7fb3524060daf4c0
1 def debug_prompt(signum, frame):
2 import readline, traceback
3 print "Debug mode! 'view' and 'model' are the last created View and Models."
4 while 1:
5 line = raw_input("(debug) ")
6 try:
7 try:
8 _ = eval(line, globals(), locals())
9 if _ is not None:
10 print _
11 except:
12 exec line
13 except:
14 traceback.print_exc()