Show More
@@ -1111,10 +1111,13 b' class InterruptiblePdb(Pdb):' | |||||
1111 | raise |
|
1111 | raise | |
1112 |
|
1112 | |||
1113 |
|
1113 | |||
1114 | def set_trace(frame=None): |
|
1114 | def set_trace(frame=None, header=None): | |
1115 | """ |
|
1115 | """ | |
1116 | Start debugging from `frame`. |
|
1116 | Start debugging from `frame`. | |
1117 |
|
1117 | |||
1118 | If frame is not specified, debugging starts from caller's frame. |
|
1118 | If frame is not specified, debugging starts from caller's frame. | |
1119 | """ |
|
1119 | """ | |
1120 | Pdb().set_trace(frame or sys._getframe().f_back) |
|
1120 | pdb = Pdb() | |
|
1121 | if header is not None: | |||
|
1122 | pdb.message(header) | |||
|
1123 | pdb.set_trace(frame or sys._getframe().f_back) |
General Comments 0
You need to be logged in to leave comments.
Login now