We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-01-03 08:04:32 +0200

How do you set up remote debugging for the browser?

When searching around for an option to do remote debugging, I noticed in the about:config there is an option to enable it. It uses the same default 6000 port as Firefox for Android does, so I thought that there was the possibility of tying it to Firefox's developer tools.

After I enabled devtools.debugger.remote-enabled and attempted to use the Connect to remote device option in Firefox (chrome://browser/content/devtools/connect.xhtml#), it promptly failed Connection timeout. I figured maybe it just wasn't exposing it non-locally (I was connected up via USB, with "Developer mode" as the option of connection) and disabled devtools.debugger.force-local but that didn't help either.

Attempted with Google Chrome's developer tools, no luck their either. So my question is, how does one set up remote debugging of the browser on Jolla? I'm talking about being able to access information like network requests, console logging, being able to do DOM manipulation, etc.

Notes:

OS: Fedora 22, Gnome 3.14

Kernel Info: Linux 3.17.7-300.fc21.x86_64 #1 SMP Wed Dec 17 03:08:44 UTC 2014 x86_64 x86_64 GNU/Linux

adb installed: yes, however Jolla didn't show up as a device

How do you set up remote debugging for the browser?

When searching around for an option to do remote debugging, I noticed in the about:config there is an option to enable it. It uses the same default 6000 port as Firefox for Android does, so I thought that there was the possibility of tying it to Firefox's developer tools.

After I enabled devtools.debugger.remote-enabled and attempted to use the Connect to remote device option in Firefox (chrome://browser/content/devtools/connect.xhtml#), it promptly failed Connection timeout. I figured maybe it just wasn't exposing it non-locally (I was connected up via USB, with "Developer mode" as the option of connection) and disabled devtools.debugger.force-local but that didn't help either.

Attempted with Google Chrome's developer tools, no luck their either. So my question is, how does one set up remote debugging of the browser on Jolla? I'm talking about being able to access information like network requests, console logging, being able to do DOM manipulation, etc.

Notes:

OS: Fedora 22, 21, Gnome 3.14

Kernel Info: Linux 3.17.7-300.fc21.x86_64 #1 SMP Wed Dec 17 03:08:44 UTC 2014 x86_64 x86_64 GNU/Linux

adb installed: yes, however Jolla didn't show up as a device