# up: Move the current frame one level up in the stack trace # break: Set a breakpoint on some_func that will be triggered if some_arg = 0 # break: Set a breakpoint at line 123 of file.py # continue: Continue execution, only stop when a breakpoint is encountered # return: Continue execution until the current function returns. # next: Execute code line by line, it doesn't enter functions called from the statement being executed # step: Execute code line by line, it may jump to another frame when a function call is encountered # args: List all arguments of the current function # jump: Jump to line 123, skip the execution of anything between # longlist: List all source code for the current function or frame # list: List 11 lines of source code around line 123 # list: List 11 lines of source code around the current line # args: Print arguments with their values of the current function # Print detailed information about the object # print: Print the value of the expression # help: Print help about the certain command Oldest frame is the frame in the stack where your program started it is the oldest in time the Newest frame, the other end of the stack, is where Python is executing code and is the current frame of execution. If you use Sublime Text 3, try Python Breakpoints. In layman's terms, ipdb is a better pdb.Īdd a breakpoint to any place you want to inspect, then run your code. Ipdb is an interactive Python Debugger with IPython integration, which features tab completion and syntax highlighting, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |