code
stringlengths
3
6.57k
request.respond({})
exc.propagate(request)
request.respond({})
self._propagate_deferred_events()
request("clientOS", json.enum("windows", "unix")
upper()
self.channel.send_event("initialized")
launch_request(self, request)
len(servers.connections()
request.cant_handle('"attach" expected')
set(request("debugOptions", json.array(unicode)
property_or_debug_option(prop_name, flag_name)
islower()
isupper()
request(prop_name, bool, optional=True)
request(python_key, json.array(unicode, vectorize=True, size=(0,)
len(python)
compat.filename(sys.executable)
request("pythonArgs", json.array(unicode, size=(0,)
request("debugLauncherPython", unicode, optional=True)
request("program", unicode)
request("module", unicode)
request("code", json.array(unicode, vectorize=True, size=(1,)
join(code)
len([x for x in (program, module, code)
json.enum("shell", "none", optional=True)
request("args", json.array(unicode)
request.arguments.pop("args", None)
request("cwd", unicode, optional=True)
else (os.path.dirname(program)
request("consoleTitle", json.default("Python Debug Console")
bool(property_or_debug_option("sudo", "Sudo")
request.cant_handle('"sudo":true is not supported on Windows.')
request("debugLauncherPath", os.path.dirname(launcher.__file__)
request("debugAdapterHost", "127.0.0.1")
servers.serve(adapter_host)
attach_request(self, request)
request.isnt_valid('"noDebug" is not supported for "attach"')
request("host", unicode, optional=True)
request("port", int, optional=True)
request("listen", dict, optional=True)
request("connect", dict, optional=True)
request("processId", (int, unicode)
request("subProcessId", int, optional=True)
listen("host", "127.0.0.1")
listen("port", int)
servers.serve(host, port)
servers.serve()
debugpy.connect()
debugpy.listen()
isinstance(pid, int)
int(pid)
request.isnt_valid('"processId" must be parseable as int')
request("debugpyArgs", json.array(unicode)
servers.inject(pid, debugpy_args)
self.channel.send_event("debugpyWaitingForServer", {"host": host, "port": port})
servers.wait_for_connection(self.session, pred, timeout)
request.respond({})
fmt('No known subprocess with "subProcessId":{0}', sub_pid)
conn.attach_to_session(self.session)
request.cant_handle("{0} is already being debugged.", conn)
configurationDone_request(self, request)
self.server.channel.delegate(request)
request.respond({})
self.start_request.respond({})
request.respond(result)
self.start_request.cant_handle(str(exc)
self.start_request.respond({})
self._propagate_deferred_events()
servers.connections()
self.notify_of_subprocess(conn)
evaluate_request(self, request)
self.server.channel.propagate(request)
handle_response(response)
request.respond(response.body)
propagated_request.on_response(handle_response)
pause_request(self, request)
self.server.channel.delegate(request)
continue_request(self, request)
self.server.channel.delegate(request)
debugpySystemInfo_request(self, request)
self.server.channel.request("pydevdSystemInfo")
result.update(pydevd_info)
terminate_request(self, request)
self.session.finalize('client requested "terminate"', terminate_debuggee=True)
disconnect_request(self, request)
request("terminateDebuggee", bool, optional=True)
self.session.finalize('client requested "disconnect"', terminate_debuggee)
notify_of_subprocess(self, conn)
log.info("Notifying {0} about {1}.", self, conn)
dict(self.start_request.arguments)
self._known_subprocesses.add(conn)
body.pop(key, None)
fmt("Subprocess {0}", conn.pid)
body.pop(key, None)
body.pop("host", None)
body.pop("port", None)
listener.getsockname()
self.channel.send_event("debugpyAttach", body)
serve(host, port)