Open
Bug 958475
Opened 12 years ago
Updated 3 years ago
[mozrunner] Add support for --debugger=lldb
Categories
(Testing :: Mozbase, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: whimboo, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Trying to use lldb on OS X 10.9 (Mavericks) breaks mozrunner:
$ mozrunner -b /Applications/Firefox/Nightly.app/ --debugger=lldb
Starting: /Applications/Firefox/Nightly.app/Contents/MacOS/firefox -foreground -profile /var/folders/wd/zmy4z7xn7wd7sjq90z1y52f80000gn/T/tmpecfzfI.mozrunner
error: file specified in --file (-f) option doesn't exist: 'oreground'
Also see bug 943734 for a fix made there.
Comment 1•11 years ago
|
||
This also affects 10.8 (Mountain Lion)
Reporter | ||
Comment 2•8 years ago
|
||
The problem here is that lldb needs the `--` separator between the application binary and the application arguments.
Given that we need lldb support for Marionette, I will try to get this fixed.
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Reporter | ||
Comment 7•8 years ago
|
||
Follow-up try build to ensure that PGO builds work fine now with the latest patch revisions:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=5313bd82666234628891fc2027b4c7a8a048abc8
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Reporter | ||
Updated•8 years ago
|
Attachment #8855298 -
Flags: review?(cmanchester)
Attachment #8855299 -
Flags: review?(cmanchester)
Reporter | ||
Updated•8 years ago
|
Attachment #8855298 -
Flags: review?(jmaher)
Attachment #8855299 -
Flags: review?(cmanchester) → review?(jmaher)
Reporter | ||
Updated•8 years ago
|
Attachment #8855298 -
Flags: review?(ted)
Attachment #8855298 -
Flags: review?(jmaher)
Attachment #8855298 -
Flags: review?(cmanchester)
Attachment #8855299 -
Flags: review?(jmaher) → review?(ted)
Comment 10•8 years ago
|
||
mozreview-review |
Comment on attachment 8855298 [details]
Bug 958475 - Improve debugger support for mozrunner API.
https://reviewboard.mozilla.org/r/127176/#review130420
::: testing/mozbase/mozrunner/mozrunner/base/runner.py:29
(Diff revision 3)
> unicode_type = unicode
> else:
> unicode_type = str
>
>
> +# Map of debugging programs to information about them
So a while ago we had someone refactor this same code out of one of the other test harnesses into a `mozdebug` package:
https://dxr.mozilla.org/mozilla-central/source/testing/mozbase/mozdebug/mozdebug/mozdebug.py
...but apparently we never made mozrunner use it!
Can you just wire up mozdebug here instead? That seems like it'd be the best solution. With most of our harnesses using mozrunner nowadays we could probably simplify things even further.
Attachment #8855298 -
Flags: review?(ted) → review-
Reporter | ||
Updated•8 years ago
|
Attachment #8855299 -
Flags: review?(ted)
Reporter | ||
Comment 11•8 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #10)
> Can you just wire up mozdebug here instead? That seems like it'd be the best
> solution. With most of our harnesses using mozrunner nowadays we could
> probably simplify things even further.
I could and it would make sense. But what I have seen is that at least one test harness which makes use of mozrunner is using mozdebug itself and simply passing all the final data to mozrunner. Whereby other test harnesses pass in the argument values as retrieved from argparse, and rely on mozrunner to find out the debugger details and args.
So given your comment you want that the debugger and args detection code always runs in mozrunner? It means I would also have to update at least reftests to handle it that way.
Flags: needinfo?(ted)
Comment 12•8 years ago
|
||
I'm OK with either making mozrunner use mozdebug and fixing everything to match, or just making it easy to use the mozdebug bits via mozrunner, whatever winds up being easier to implement. I'd just rather not have all of mozdebug duplicated in mozrunner.
Flags: needinfo?(ted)
Comment 13•8 years ago
|
||
Any chance we can revive this? It's blocking bug 1261180 which prevents us from debugging marionette tests.
Flags: needinfo?(hskupin)
Reporter | ||
Comment 14•8 years ago
|
||
I don't have the time right now to continue. If someone wants to follow up on my existing patch, feel free to take over.
Assignee: hskupin → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(hskupin)
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•