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)
| 325 | self.interaction(frame, None) |
| 326 | |
| 327 | def bp_commands(self, frame): |
| 328 | """Call every command that was set for the current active breakpoint |
| 329 | (if there is one). |
| 330 | |
| 331 | Returns True if the normal interaction function must be called, |
| 332 | False otherwise.""" |
| 333 | # self.currentbp is set in bdb in Bdb.break_here if a breakpoint was hit |
| 334 | if getattr(self, "currentbp", False) and \ |
| 335 | self.currentbp in self.commands: |
| 336 | currentbp = self.currentbp |
| 337 | self.currentbp = 0 |
| 338 | lastcmd_back = self.lastcmd |
| 339 | self.setup(frame, None) |
| 340 | for line in self.commands[currentbp]: |
| 341 | self.onecmd(line) |
| 342 | self.lastcmd = lastcmd_back |
| 343 | if not self.commands_silent[currentbp]: |
| 344 | self.print_stack_entry(self.stack[self.curindex]) |
| 345 | if self.commands_doprompt[currentbp]: |
| 346 | self._cmdloop() |
| 347 | self.forget() |
| 348 | return |
| 349 | return 1 |
| 350 | |
| 351 | def user_return(self, frame, return_value): |
| 352 | """This function is called when a return trap is set here.""" |