[webkit-dev] JavaScriptCore and the V8 debugger protocol

jamey.hicks at nokia.com jamey.hicks at nokia.com
Tue Mar 9 05:31:10 PST 2010

Hi Jonathan,

I've been working on remote debugging/profiling of webkit and I've been leveraging work that the webkit and chromium guys did to separate the Web Inspector frontend from backend.

I was actually thinking about sending email to the list this morning about agreeing on a remote/on-device protocol for debugging and profiling webkit.

It is possible to replace the javascript in the Web Inspector front-end in order to enable a remote connection to the Web Inspector backend. Once you do that, you can remotely debug, inspect, and profile your code.

I have made two prototypes enable remote debugging. In these two prototypes, I have used the Web Inspector UI running in Safari or WebKit on a desktop connected to the backend running in a webkit instance on another device. My first prototype was all implemented in C++ for qtwebkit. There is a patch with this code:

 Qt debug agent partially implementing ChromeDevTools and V8 debug protocol<https://bugs.webkit.org/attachment.cgi?id=48913> attached to https://bugs.webkit.org/show_bug.cgi?id=35016

Given the feedback on that set of patches, I've been working on a javascript debug agent with this patch to load alternate inspector javascript:

I also did a partial implementation of the ChromeDevTools protocol and a V8Debug protocol adapter for JavaScriptCore.

In discussions with some of the Chromium guys, it sounds like they would like to move ChromeDevTools protocol closer to the internal protocol used by WebKit. I would like to see a stable inspection/profiling/debug protocol for WebKit and JavaScriptCore.

Best regards,
Jamey Hicks

On Mar 8, 2010, at 7:18 PM, ext Fischoff, Jonathan wrote:

I would like to control JavaScript execution in my app remotely using the V8 debugger protocol. Does anyone know if there exists code that implements and the V8 debugger protocol for JavaScriptCore?

My main goal is remotely debug JavaScript, so I am also wondering what other technologies exist for remotely debugging JavaScriptCore. Any ideas?

-Jonathan Fischoff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100309/eb969666/attachment.html>

More information about the webkit-dev mailing list