16.5.1.4 Debug menu (in the Python Shell window only)

Python PEP

16.5.1.4 Debug menu (in the Python Shell window only)

look around the insert point for a filename and linenumber, open the file, and show the line.
show the stack traceback of the last exception
Run commands in the shell under the debugger
Open stack viewer on traceback

See About this document... for information on suggesting changes.