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)
| 270 | self.interaction(frame, None) |
| 271 | |
| 272 | def bp_commands(self, frame): |
| 273 | """Call every command that was set for the current active breakpoint |
| 274 | (if there is one). |
| 275 | |
| 276 | Returns True if the normal interaction function must be called, |
| 277 | False otherwise.""" |
| 278 | # self.currentbp is set in bdb in Bdb.break_here if a breakpoint was hit |
| 279 | if getattr(self, "currentbp", False) and \ |
| 280 | self.currentbp in self.commands: |
| 281 | currentbp = self.currentbp |
| 282 | self.currentbp = 0 |
| 283 | lastcmd_back = self.lastcmd |
| 284 | self.setup(frame, None) |
| 285 | for line in self.commands[currentbp]: |
| 286 | self.onecmd(line) |
| 287 | self.lastcmd = lastcmd_back |
| 288 | if not self.commands_silent[currentbp]: |
| 289 | self.print_stack_entry(self.stack[self.curindex]) |
| 290 | if self.commands_doprompt[currentbp]: |
| 291 | self._cmdloop() |
| 292 | self.forget() |
| 293 | return |
| 294 | return 1 |
| 295 | |
| 296 | def user_return(self, frame, return_value): |
| 297 | """This function is called when a return trap is set here.""" |