MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / onecmd

Method onecmd

tools/python-3.11.9-amd64/Lib/pdb.py:476–486  ·  view source on GitHub ↗

Interpret the argument as though it had been typed in response to the prompt. Checks whether this line is typed at the normal prompt or in a breakpoint command list definition.

(self, line)

Source from the content-addressed store, hash-verified

474 return line
475
476 def onecmd(self, line):
477 """Interpret the argument as though it had been typed in response
478 to the prompt.
479
480 Checks whether this line is typed at the normal prompt or in
481 a breakpoint command list definition.
482 """
483 if not self.commands_defining:
484 return cmd.Cmd.onecmd(self, line)
485 else:
486 return self.handle_command_def(line)
487
488 def handle_command_def(self, line):
489 """Handles one command line during command list definition."""

Callers 1

bp_commandsMethod · 0.95

Calls 1

handle_command_defMethod · 0.95

Tested by

no test coverage detected