MCPcopy Index your code
hub / github.com/RustPython/RustPython / bp_commands

Method bp_commands

Lib/pdb.py:272–294  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 1

user_lineMethod · 0.95

Calls 6

setupMethod · 0.95
onecmdMethod · 0.95
print_stack_entryMethod · 0.95
_cmdloopMethod · 0.95
forgetMethod · 0.95
getattrFunction · 0.85

Tested by

no test coverage detected