How to test privileged packaged apps on Firefox for Desktop?

元气小坏坏 提交于 2019-11-30 23:30:53

Didn't found the way to debug privileged app either, so I've created bug on bugzilla, vote, please to solve this issue faster: https://bugzilla.mozilla.org/show_bug.cgi?id=1038533

You can refer to debugging guideline of web apps for Friefox desktop.

To access the console (and other remote developer tools), start the app from a command line with the -debug flag and optionally specifying a port (default: 6000). For example, on a Mac the Mykzilla test app is started with:

/Applications/Mykzilla.app/Contents/MacOS/webapprt -debug 6000

Then, in Firefox, on the Developer Tools menu click Connect… and connect to the “localhost” host at the port you specified. After clicking Connect in Firefox, go back to your app and confirm the connection. Then return to Firefox and select a “tab” (i.e. an open window in your app) or “Main Process” to debug the Web Runtime’s chrome code.

Then a copy of Firefox’s Remote Developer Tools should open in a new window, and it should be connected to the “tab” you selected.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!