Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dev Tool Xul App

89 views
Skip to first unread message

Josh Nijenhuis

unread,
Mar 21, 2016, 12:54:46 PM3/21/16
to dev-devel...@lists.mozilla.org
Is there any information out there and using dev tools for debugging a
custom xul app?

firefox-45 -app mytestapp/application.ini ?

when calling
Cu.import('resource://devtools/shared/Loader.jsm');

I get

JavaScript error: chrome://mytestapp/content/Core.js, line 18:
NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXPCComponents_Utils.import]

any ideas or links to online docs for debugging xul apps running under
firefox -app would be helpfull. especially since xulrunner is not being
released standalone anymore.

Thanks,

Josh

J. Ryan Stinnett

unread,
Mar 22, 2016, 8:06:38 AM3/22/16
to Josh Nijenhuis, dev-developer-tools
I believe https://bugzilla.mozilla.org/show_bug.cgi?id=1244163 covers
this issue.

After some internal file migration work, external XUL apps no longer
have an easy path to set up debugging. Unfortunately, I don't see a
clear way to repair this at the moment.

- Ryan
> _______________________________________________
> dev-developer-tools mailing list
> dev-devel...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-developer-tools

Josh Nijenhuis

unread,
Mar 22, 2016, 8:35:38 AM3/22/16
to J. Ryan Stinnett, dev-developer-tools
Thanks Ryan,

Would it be wise to have the docs say this somewhere

https://developer.mozilla.org/en-US/docs/Archive/Mozilla/XULRunner/Debugging_XULRunner_applications

I know that is archived, but its linked by this

https://developer.mozilla.org/en-US/docs/Mozilla/Debugging

and also this little tid bit
https://developer.mozilla.org/en-US/docs/Archive/Mozilla/XULRunner

Firefox (from version 3) ships with a private XULRunner package, which can run any compatible XULRunner application using the -app switch: firefox -app application.ini is equivalent to xulrunner -app application.ini

"equivalent" our app runs okay so far in testing, just devtools that doesn't work so far, which is basically preventing new development and bug fixes, will have to backdown to xulrunner 41 for now or even FF 44

firefox flags
--devtools
--start-debugger-server


One would expect those to trigger the private xulrunner package to start a debug server so that xul apps wouldn't have to...
And also devtools to start up. If those aren't defined then let xul app take care of it.

I know I don't understand the internal workings but just my thoughts.

Josh

J. Ryan Stinnett

unread,
Mar 30, 2016, 8:37:07 AM3/30/16
to Josh Nijenhuis, dev-developer-tools
I have added a warning note to
https://developer.mozilla.org/en-US/docs/Archive/Mozilla/XULRunner/Debugging_XULRunner_applications.

The main issue is that the DevTools files changed to being built as
part of the application (Firefox) instead of overall platform, and so
they can't be reached when you load a custom XUL app.

- Ryan
0 new messages