I am developing a Firefox addon and would like to test it on Android. I have downloaded Nightly on the phone and have root access.
Inside of the addon's directory, I run the following command:
cfx run -a fennec-on-device -b /bin/adb --mobile-app fennec --force-mobile
as according to the documentation.
Nightly
is then opened up on my phone and I get the following output at the terminal:
Launching mobile application with intent name org.mozilla.fennec
Pushing the addon to your device
Starting: Intent { act=android.activity.MAIN cmp=org.mozilla.fennec/.App (has extras) }
But there is no debug output whatsoever. I have tried putting console.log
statements at the top of my main.js
and the first content script that is supposed to load.
Is this a common problem? What else can I check? If more specific information is necessary, please post a comment.