![]() |
Web console on sailfish-browser
This might be an embarassingly n00b question but how can I access the web console of the sailfish browser?
There's no developer tools window AFAIK. When sailfish-browser is started from the shell it does display quite useful debug messages but no output from javascript, so where do my console.log() prints go to? The reason why I am curious about it is that I have an application that works correctly in Firefox and Chrome but fails on my Jolla device. |
Re: Web console on sailfish-browser
Quote:
|
Re: Web console on sailfish-browser
Quote:
I am talking about an invoice generator I did recently... https://github.com/juiceme/pantterilasku |
Re: Web console on sailfish-browser
Code:
journalctl -af | grep browser |
Re: Web console on sailfish-browser
Quote:
|
Re: Web console on sailfish-browser
Back in the day when android/ios didn't support remote debugging there was this project called weinre – sadly most of the documentation is now 404. But there's some code mirrored at the apache cordova github. Perhaps you can get it running. It emulates the dev tools on your phone and displays it at a remote chrome instance.
Also, something like jsconsole might help you (I have not tested it!). |
Re: Web console on sailfish-browser
OK, now I found out the root of half of the problem :p
Why my application did not work on Jolla; the problem was not my javascript, it was actually one of the JSON files I use for configuration... in the latest commit I modified the file format but when I pulled the new version from git to my device I forgot to update the file-in-use to the new template :eek: But the original question remains; Where do I see the web console output from the browser??? |
Re: Web console on sailfish-browser
Quote:
Quote:
|
Re: Web console on sailfish-browser
i think you need to write some extension sending you jsconsole logs, as it can be not bridged from gecko to qtmozembed/embedlite components
|
Re: Web console on sailfish-browser
Quote:
I'd try it anyway. If it doesn't work, ping me via DM and I might take a look if time allows. ;) Quote:
*) everyone here knows what I meant – I'd love tell you the opposite, no flame intended. |
All times are GMT. The time now is 03:34. |
vBulletin® Version 3.8.8