Connecting to WebCore Remotely

79 views
Skip to first unread message

paldeb...@gmail.com

unread,
Sep 5, 2012, 3:14:04 AM9/5/12
to google-chrome-...@googlegroups.com
Hello All,

I am trying to use Web Inspector remotely, to do this I need to connect to the WebCore using WebSocket. But when the WenInspector loaded function is getting called to create a new web socket
socket = new WebSocket("ws://" + host + "/devtools/page/" + page);
WebCore is giving "page not found error"

It would be very helpful, if you can suggest me what parameter should I provide in the WebSocket method, so that I can connect to the WebCore and start communication. Another questions is whether do we need any specific web server for this? Currently I am using apache tomcat.

Thanks in advance.

Regards,
Deb

Yury Semikhatsky

unread,
Sep 5, 2012, 3:36:19 AM9/5/12
to paldeb...@gmail.com, google-chrome-...@googlegroups.com
Hi Deb,

Although remote debugging protocol is implemented in WebCore, the Web Socket server implementation is port-specific. You can find instructions for Chromium on this page: https://developers.google.com/chrome-developer-tools/docs/remote-debugging#remote In case of Chromium you don't need any additional web server to connect to the browser remotely. Which WebKit port are you using?

Thanks,
Yury

paldeb...@gmail.com

unread,
Sep 5, 2012, 4:57:35 AM9/5/12
to google-chrome-...@googlegroups.com, paldeb...@gmail.com
Hello Yury,

Thanks for your answer, actually I am using GtkLauncher, and it doesn't have any option to provide the port number. Is there any way to communicate to the Webcore from my javascript/html file?

Regards,
Deb

Yury Semikhatsky

unread,
Sep 5, 2012, 7:46:16 AM9/5/12
to paldeb...@gmail.com, google-chrome-...@googlegroups.com
On Wed, Sep 5, 2012 at 12:57 PM, <paldeb...@gmail.com> wrote:
Hello Yury,

Thanks for your answer, actually I am using GtkLauncher, and it doesn't have any option to provide the port number.
The bug about remote debugging server support in Gtk is still open: wkbug.com/88094 so I believe it may no support remote debugging yet. But you'd better clarify this with Gtk port maintainers. 
 
Is there any way to communicate to the Webcore from my javascript/html file? 
If you mean connecting over the remote debugging protocol then no, we don't expose any special bindings for that for regular pages. You should connect over WebSocket protocol.
Reply all
Reply to author
Forward
0 new messages