def do_get(self, arg): """get Skip to where the current task returns to. """ ray.worker.global_worker.debugger_get_breakpoint = self._breakpoint_uuid self.__restore() self.handle.connection.close() return Pdb.do_continue(self, arg)
def do_remote(self, arg): """remote Skip into the next remote call. """ # Tell the next task to drop into the debugger. ray.worker.global_worker.debugger_breakpoint = self._breakpoint_uuid # Tell the debug loop to connect to the next task. _internal_kv_put("RAY_PDB_CONTINUE_{}".format(self._breakpoint_uuid), "") self.__restore() self.handle.connection.close() return Pdb.do_continue(self, arg)
def do_remote(self, arg): """remote Skip into the next remote call. """ # Tell the next task to drop into the debugger. ray.worker.global_worker.debugger_breakpoint = self._breakpoint_uuid # Tell the debug loop to connect to the next task. data = json.dumps({ "job_id": ray.get_runtime_context().job_id.hex(), }) _internal_kv_put("RAY_PDB_CONTINUE_{}".format(self._breakpoint_uuid), data) self.__restore() self.handle.connection.close() return Pdb.do_continue(self, arg)
def do_continue(self, arg): self._exit_hook() return Pdb.do_continue(self, arg)
def do_continue(self, arg): self.__restore() self.handle.connection.close() return Pdb.do_continue(self, arg)