MCPcopy Index your code
hub / github.com/python/cpython / _send_command

Method _send_command

Lib/test/test_remote_pdb.py:1106–1109  ·  view source on GitHub ↗

Helper to send a command to the debugger.

(self, client_file, command)

Source from the content-addressed store, hash-verified

1104 return messages
1105
1106 def _send_command(self, client_file, command):
1107 """Helper to send a command to the debugger."""
1108 client_file.write(json.dumps({"reply": command}).encode() + b"\n")
1109 client_file.flush()
1110
1111 def test_connect_and_basic_commands(self):
1112 """Test connecting to a remote debugger and sending basic commands."""

Calls 4

writeMethod · 0.45
encodeMethod · 0.45
dumpsMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected