devtools-docs
devtools-docs copied to clipboard
Documentation of HTTP Remote Debugging API
I was browsing the source of Chromium to learn more about the HTTP Remote Debugging API in Chrome, as I've been unable to find documentation for this API.
Is it intentionally left undocumented, or should an effort be started to document this AP?
/k
This is beneath the Debugging Protocol? If that's the case, then I suppose this is undocumented just because I had no idea there would be consumers for it.
Also as we are slow to commit to supporting an API from changing, this would be a bit away from that. That said, you would know the stability here better than me.
No, it's the HTTP interface that Chrome exposes along the WebSocket for remote debugging.
const char kPageListRequest[] = "GET /json HTTP/1.1\r\n\r\n";
const char kVersionRequest[] = "GET /json/version HTTP/1.1\r\n\r\n";
const char kClosePageRequest[] = "GET /json/close/%s HTTP/1.1\r\n\r\n";
const char kNewPageRequest[] = "GET /json/new HTTP/1.1\r\n\r\n";
const char kNewPageRequestWithURL[] = "GET /json/new?%s HTTP/1.1\r\n\r\n";
devtools_adb_bridge.cc, line 56.
I'm not sure about the exact usage, but I assume usage from chrome://inspect to open new tabs etc. on mobile devices.
It's a quite handy API for editor-integrations like Brackets to open/close tabs, and has been stable for the past 6 months.
I'm happy to do a write-up, if you like.
Totally! I think that'd be super helpful if you could write up how things work there.
On Fri, Mar 14, 2014 at 10:40 AM, Kenneth Auchenberg < [email protected]> wrote:
No, it's the HTTP interface that Chrome exposes along the WebSocket for remote debugging.
const char kPageListRequest[] = "GET /json HTTP/1.1\r\n\r\n"; const char kVersionRequest[] = "GET /json/version HTTP/1.1\r\n\r\n"; const char kClosePageRequest[] = "GET /json/close/%s HTTP/1.1\r\n\r\n"; const char kNewPageRequest[] = "GET /json/new HTTP/1.1\r\n\r\n"; const char kNewPageRequestWithURL[] = "GET /json/new?%s HTTP/1.1\r\n\r\n";
devtools_adb_bridge.cc, line 56https://chromium.googlesource.com/chromium/chromium/+/trunk/chrome/browser/devtools/devtools_adb_bridge.cc#56 .
I'm not sure about the exact usage, but I assume usage from chrome://inspect to open new tabs etc. on mobile devices.
It's a quite handy API for editor-integrations like Brackets to open/close tabs, and has been stable for the past 6 months.
I'm happy to do a write-up, if you like.
Reply to this email directly or view it on GitHubhttps://github.com/GoogleChrome/devtools-docs/issues/67#issuecomment-37675331 .
These seem related: https://github.com/GoogleChrome/devtools-docs/issues/67#issuecomment-37675331 https://bugs.chromium.org/p/chromium/issues/detail?id=700347#c14