Closed Bug 1095635 Opened 5 years ago Closed 5 years ago

Provide a command line option to dump gecko stdout to the console for debugging marionette

Categories

(Testing :: Marionette, defect)

defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED
mozilla36

People

(Reporter: chmanchester, Assigned: chmanchester)

References

Details

Attachments

(1 file, 1 obsolete file)

I have something for this sitting in my patch queue for working on marionette. If others would find it convenient we could add it as a commandline option.
Does it mean that it will print out the dump() calls from within Firefox? If that is the case I would really be interested in given that at the moment it is like a shut in the dark to figure out what's wrong in a js code block passed to execute script.
(In reply to Henrik Skupin (:whimboo) from comment #1)
> Does it mean that it will print out the dump() calls from within Firefox? If
> that is the case I would really be interested in given that at the moment it
> is like a shut in the dark to figure out what's wrong in a js code block
> passed to execute script.

I think it would, but also lots of other debug output from the server, so maybe not the best mechanism for trying to debug tests. We should do what we can to make that better, but may have a solution elsewhere.
We'll want anything here to work in concert with the approach in bug 1084565.
Depends on: 1084565
Attachment #8523916 - Flags: review?(ahalberstadt)
/r/723 - Bug 1095635 - Accept '-' to correspond to stdout for marionette's --gecko-log option.

Pull down this commit:

hg pull review -r f7e630149f51ce2cb039a4e4730cf0a0572dc7c9
https://reviewboard.mozilla.org/r/721/#review313

::: testing/marionette/mach_commands.py
(Diff revision 1)
> +    @CommandArgument('--gecko-log',

If we don't think this is generally useful I'll keep it to myself, but this is what I had in mind.
Attachment #8523916 - Flags: review?(ahalberstadt) → review+
Assignee: nobody → cmanchester
https://hg.mozilla.org/mozilla-central/rev/ebb36c4fc37f
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Attachment #8523916 - Attachment is obsolete: true
Attachment #8618572 - Flags: review+
You need to log in before you can comment on or make changes to this bug.