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

How do you set up remote debugging for the browser?

asked 2015-01-03 08:04:32 +0300

JoshStrobl gravatar image

updated 2015-01-03 11:25:50 +0300

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 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

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
0

answered 2015-01-03 14:37:34 +0300

tbr gravatar image

updated 2015-01-03 17:35:33 +0300

Sailfish-browser currently uses a fairly recent Gecko engine. I've noticed that recent Firefox doesn't start its debugger server until you type "listen 6000" into the developer toolbar. This might be related.

I've posed a question on the MozNet #devtools channel on "how to force start the server" and am idling there awaiting reactions.

I've been pointed to https://addons.mozilla.org/en-US/firefox/addon/remote-developer-tools-server/ as a way to enable the server. I managed to install it by manually extracting it to

~/.mozilla/mozembed/extensions/remote-debugger@mozilla.org/

I haven't yet figured out how to get to the UI. Also it should start if the pref is enabled but it didn't.

edit flag offensive delete publish link more

Comments

Well I'm not exactly running a recent version of Firefox. Should've made note of it in original post, but I am running Firefox 34.0.

JoshStrobl ( 2015-01-03 15:02:11 +0300 )edit

I'm talking about the server (remote) side, not the client side.

The client running the debugging console (your firefox) should be Version >24, other than that it doesn't matter.

tbr ( 2015-01-03 15:06:54 +0300 )edit
1

@JoshStrobl@tbr Did you ever manage to setup remote debugging?

droid001 ( 2019-02-10 12:24:27 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2015-01-03 08:04:32 +0300

Seen: 1,084 times

Last updated: Jan 03 '15