devtools-docs icon indicating copy to clipboard operation
devtools-docs copied to clipboard

Documentation of HTTP Remote Debugging API

Open auchenberg opened this issue 10 years ago • 4 comments

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

auchenberg avatar Feb 20 '14 17:02 auchenberg

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.

paulirish avatar Mar 10 '14 22:03 paulirish

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.

auchenberg avatar Mar 14 '14 17:03 auchenberg

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 .

paulirish avatar Mar 14 '14 17:03 paulirish

These seem related: https://github.com/GoogleChrome/devtools-docs/issues/67#issuecomment-37675331 https://bugs.chromium.org/p/chromium/issues/detail?id=700347#c14

ghost avatar Apr 07 '17 03:04 ghost