code: def do_detach(self, arg):
          
          debug   = self.debug
          token_list = self.split_tokens(arg)
          if self.cmdprefix:
              token_list.insert(0, self.cmdprefix)
          targets = self.input_process_list(token_list)
          if not targets:
              if self.lastEvent is None:
                  raise CmdError("no current process set")
              targets = [ self.lastEvent.get_pid() ]
          for pid in targets:
              try:
                  debug.detach(pid)
                  print("Detached from process (%d)" % pid)
              except Exception:
                  print("Error: can't detach from process (%d)" % pid)
docs: [~process] detach - detach from the current process
          detach - detach from the current process
          detach <target> [target...] - detach from the given process(es)