repo.or.cz
/
dom-editor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make Element the default for new nodes.
[dom-editor.git]
/
Dome
/
debug.py
blob
badf97c6664246b652ce866e7fb3524060daf4c0
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
()