Example #1
0
 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)
Example #2
0
File: rpdb.py Project: ckw017/ray
 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)
Example #3
0
 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)
Example #4
0
 def do_continue(self, arg):
     self._exit_hook()
     return Pdb.do_continue(self, arg)
Example #5
0
 def do_continue(self, arg):
     self.__restore()
     self.handle.connection.close()
     return Pdb.do_continue(self, arg)