Am 14.03.2010 12:53, schrieb Mark Lawrence:
vsoler wrote:
I sometimes want to stop the script at a certain point,
with something like stop, break, end or something similar.
What statement can I use?
Something like
import sys
sys.exit()?

Or just "raise SystemExit", "raise SyntaxError" or any other Exception.
But you won't have to: If you use IDLE, you can just set breakpoints in your code: enable the debugger in debug-debugger and set breakpoints via right click in your source file.

Or you could use a real debugger, like pdb
http://docs.python.org/library/pdb.html

HTH,
Michael
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to