MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / main

Function main

pydevd_attach_to_process/add_code_to_python_process.py:588–596  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

586
587
588def main(args):
589 # Otherwise, assume the first parameter is the pid and anything else is code to be executed
590 # in the target process.
591 pid = int(args[0])
592 del args[0]
593 python_code = ";".join(args)
594
595 # Note: on Linux the python code may not have a single quote char: '
596 run_python_code(pid, python_code)
597
598
599if __name__ == "__main__":

Callers 1

Calls 2

run_python_codeFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected