代码中引用pdb:
import pdb
以下是设置方法:
| set_break(self, filename, lineno, temporary=0, cond=None, funcname=None)
|
| set_continue(self)
|
| set_next(self, frame)
| Stop on the next line in or below the given frame.
|
| set_quit(self)
|
| set_return(self, frame)
| Stop when returning from the given frame.
|
| set_step(self)
| Stop after one line of code.
|
| set_trace(self, frame=None)
| Start debugging from `frame`.
|
| If frame is not specified, debugging starts from caller's frame.
|
| set_until(self, frame)
| Stop when the line with the line no greater than the current one is
| reached or when returning from current frame