Call every command that was set for the current active breakpoint (if there is one). Returns True if the normal interaction function must be called, False otherwise.
(self, frame)
| 582 | user_opcode = user_line |
| 583 | |
| 584 | def bp_commands(self, frame): |
| 585 | """Call every command that was set for the current active breakpoint |
| 586 | (if there is one). |
| 587 | |
| 588 | Returns True if the normal interaction function must be called, |
| 589 | False otherwise.""" |
| 590 | # self.currentbp is set in bdb in Bdb.break_here if a breakpoint was hit |
| 591 | if getattr(self, "currentbp", False) and \ |
| 592 | self.currentbp in self.commands: |
| 593 | currentbp = self.currentbp |
| 594 | self.currentbp = 0 |
| 595 | for line in self.commands[currentbp]: |
| 596 | self.cmdqueue.append(line) |
| 597 | self.cmdqueue.append(f'_pdbcmd_restore_lastcmd {self.lastcmd}') |
| 598 | |
| 599 | def user_return(self, frame, return_value): |
| 600 | """This function is called when a return trap is set here.""" |