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

Firefox remote debugging - anybody got it to work?

asked 2017-12-11 11:46:00 +0200

DaveRo gravatar image

I want to debug a Firefox addon (stylus) which seems to behave differently on real Android and Jolla C/Alien. I tried remote debugging via USB, which didn't work. This was not a surprise to me: I doubt if it can work with Alien.

Has anybody found a way?

(Styles in /opt/alien/data/data/org.mozilla.firefox/files/mozilla/xxxxxxx.default/chrome/userContent.css work, but I want to be able to easily enable/disable them.)

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
0

answered 2017-12-11 11:53:04 +0200

tortoisedoc gravatar image

updated 2017-12-11 11:57:40 +0200

Remote debugging requires adb; adb is actually availble on the alien, but if it is usable I can't say. I got up to the point where I was able to connect to adb on my Jolla phone (after having shared my dev pc's public key, and started adb on the phone). But that's it, from that point on some library incoherencies blocked adb to start the intended app in the alien. I suspect this being due to the library paths in the environment for adb (server, as in on the phone) not being configured right.

edit flag offensive delete publish link more

Comments

Does 'remote debugging via wifi' depend on ADB? I've never used it.

Since the demise of xul addons there is no way to even see the js console on Android without remote debugging.

DaveRo ( 2017-12-11 12:29:07 +0200 )edit

Its a good question! Personally I havent used the stylus ext so I cant really say, but I felt like sharing my experience in remote debugging :)

tortoisedoc ( 2017-12-11 12:39:30 +0200 )edit

Unless somebody has already tried wifi remote debugging I'll give it a go and report back.

Stylus doesn't fully work on Android anyway, but it's usable. But on Jolla it stops my own 'scroll to top/bottom' addons working.

DaveRo ( 2017-12-11 13:26:25 +0200 )edit

Well, I tried it. I couldn't get my Linux desktop to connect to the remote host, even on my standard Android tablet. It uses UDP multicast - could be firewalls or the router - and I'm reluctant to mess with the router in case IGMP multicast breaks. Even if I solved the connectivity on Android I think the probability of it working on Jolla is very low.

DaveRo ( 2017-12-11 18:11:28 +0200 )edit

Why would you need to worry about the router? It's most likely iptables on your linux computer / laptop. You can easily add/remove rules for enabling the correct ports. The adb docs have surely some hints on which ones in particular.

tortoisedoc ( 2017-12-11 19:59:40 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2017-12-11 11:46:00 +0200

Seen: 318 times

Last updated: Dec 11 '17