Closed
Bug 1129798
Opened 9 years ago
Closed 9 years ago
mach command debugging improvements
Categories
(Firefox Build System :: Mach Core, enhancement)
Firefox Build System
Mach Core
Tracking
(firefox38 fixed)
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: gps, Assigned: gps)
References
Details
Attachments
(1 file)
1.47 KB,
patch
|
ahal
:
review+
|
Details | Diff | Splinter Review |
Patches forthcoming.
Assignee | ||
Comment 1•9 years ago
|
||
The previous debugger was setting a breakpoint in the mach dispatcher. This required users to step into the main function to be called into. Using pdb.runcall(), the debugger starts at the first line in the executed command, which is far more useful.
Attachment #8559624 -
Flags: review?(ahalberstadt)
Assignee | ||
Comment 2•9 years ago
|
||
I initially thought I'd have multiple patches here. I wanted to use pdb.post_mortem() to automatically enter a debugger from the raise point. However, combining pdb.post_mortem() with pdb.runcall() doesn't seem to work well. When the post mortem debugger is entered, it shows the frame as the first function in the dispatched mach command. I suspect that the debugger instance sets some state and pdb.post_mortem() isn't clearing it. Most weird.
Assignee | ||
Comment 3•9 years ago
|
||
So the traceback from sys.exc_info() doesn't have the correct frame info when pdb.runcall() is used. Digging through the source of pdb.py and bdb.py, I suspect extreme Python magic. I think a patch could be written, but it would involve calling a bunch of low-level pdb APIs. I'm not going to bother.
Updated•9 years ago
|
Attachment #8559624 -
Flags: review?(ahalberstadt) → review+
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/71972672e292
Comment 5•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/71972672e292
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•