Skip to content

Instantly share code, notes, and snippets.

@ewencp
Created December 8, 2011 19:22
Show Gist options
  • Select an option

  • Save ewencp/1448148 to your computer and use it in GitHub Desktop.

Select an option

Save ewencp/1448148 to your computer and use it in GitHub Desktop.
Enable dev tools in berkelium
diff --git a/src/Root.cpp b/src/Root.cpp
index 37f9833..13d161e 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -469,6 +469,12 @@ bool Root::init(FileString homeDirectory, FileString subprocessDirectory) {
g_browser_process->resource_dispatcher_host());
mDefaultRequestContext=mProf->GetRequestContext();
+
+ g_browser_process->InitDevToolsHttpProtocolHandler(
+ "127.0.0.1",
+ (int)9222,
+ "");
+
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment