Closed
Bug 306263
Opened 19 years ago
Closed 8 years ago
"xulrunner -console application.ini" exits without displaying information on Usage
Categories
(Toolkit Graveyard :: XULRunner, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: WeirdAl, Unassigned)
Details
The -console option is great for debugging, particularly with the dump() statement. Unfortunately, it doesn't work for XULRunner in optimized builds.
Comment 1•19 years ago
|
||
Define 'doesn't work' please. I am fairly sure all toolkit apps have some issues with their console on Windows. Is it just not printing anything, or what? Also, this WFM in my XULRunner 1.8b4_2005071504 build.
Comment 2•19 years ago
|
||
Note that you must set the dump pref, and -console must be specified *after* the -app item, or XULRunner does nothing (bug?).
Reporter | ||
Comment 3•19 years ago
|
||
Meh, that might explain it. I thought -console had to be one of the first arguments on the command line. I'm going off what I remember about my laptop, until my opt build finishes on my desktop.
Comment 4•19 years ago
|
||
Passing -console first leads to nothing happening here, which is wrong. XULRunner should either issue an error or work, so there is a bug of sorts.
Comment 5•19 years ago
|
||
One could even argue that passing -console should automatically default the dump preference to true, rather than false, but that's really a separate issue. http://lxr.mozilla.org/seamonkey/source/xulrunner/app/nsXULRunnerApp.cpp#396 That code really ought to check if the first parameter (which is it blindly assuming is a path to an app data file) is an argument (i.e. starts with - or /, etc.).
Comment 6•19 years ago
|
||
And do what with it?
Comment 7•19 years ago
|
||
And print out the usage or similar, to indicate you got the parameters wrong. An alternative would be to just display an error if the app data file is not there, rather than also doing nothing.
Updated•18 years ago
|
Summary: xulrunner -console doesn't work → "xulrunner -console application.ini" exits without displaying information on Usage
Comment 8•18 years ago
|
||
Fixed by a patch in bug 326449?
Comment 9•15 years ago
|
||
James do you still see this?
Comment 10•8 years ago
|
||
XULRunner has been removed from the Mozilla tree: see https://groups.google.com/forum/#!topic/mozilla.dev.platform/_rFMunG2Bgw for context. I am closing all the bugs currently in the XULRunner bugzilla component, in preparation for moving this component to the graveyard. If this bug is still valid in a XULRunner-less world, it will need to be moved to a different bugzilla component to be reopened.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Assignee | ||
Updated•8 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•