It is possible to distribute a packaged app via Firefox Marketplace for installation on Firefox for Desktop. Apps for Firefox OS devices I can test comfortably via about:app-manager either on a USB connected device, or with the simulator.
How can I test a packaged app on Firefox for Desktop?
Update
I found that I can debug an app that I have installed from Marketplace by starting it with the -debug
option and an optional port number:
C:\Users\Felix\AppData\Roaming\thetacontrol-56cab87ea3eecf190668cfb505f92c56>"Theta Control.exe" -debug 6000
The next step is to connect to the port from Firefox developer tools:
Still I don't know how to debug an app that is not (yet) on Marketplace.