> // DEPRECATED, use Value::Clone() instead.

atom/browser/api/atom_api_debugger.cc
if (!agent_host_.get())
    return;
  agent_host_->DetachClient(this);
  AgentHostClosed(agent_host_.get());
  agent_host_ = nullptr;
}
void Debugger::SendCommand(mate::Arguments* args) {
  if (!agent_host_.get())
    return;
  std::string method;
  if (!args->GetNext(&method)) {
    args->ThrowError();
    return;
  }
  base::DictionaryValue command_params;
  args->GetNext(&command_params);
  SendCommandCallback callback;
  args->GetNext(&callback);
  base::DictionaryValue request;
  int request_id = ++previous_request_id_;
  pending_requests_[request_id] = callback;
  request.SetInteger("id", request_id);
  request.SetString("method", method);
  if (!command_params.empty())
    request.Set("params", base::WrapUnique(command_params.DeepCopy()));
  std::string json_args;
  base::JSONWriter::Write(request, &json_args);
  agent_host_->DispatchProtocolMessage(this, json_args);
}
mate::Handle<Debugger> Debugger::Create(v8::Isolate* isolate,