Closed Bug 1592431 Opened 5 years ago Closed 5 years ago

[jsdbg2] Debugger.Frame should report script, callee, bytecode offset for suspended generator frames

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: jimb, Assigned: loganfsmyth)

References

Details

Attachments

(5 files)

At the moment, a Debugger.Frame for a suspended generator or async call can't report any information about the suspended call, but the generator object referred to by the frame's GeneratorInfo structure has a lot of information.

In particular, to obtain stack traces, we need to be able to obtain the callee and the bytecode offset within that callee. These are available via the CALLEE_SLOT and RESUME_INDEX_SLOT reserved slots in any AbstractGeneratorObject.

Blocks: 1592430
Priority: -- → P3
Blocks: dbg-72
Summary: [jsdbg2] Debugger.Frame should report callee, bytecode offset for suspended generator frames → [jsdbg2] Debugger.Frame should report script, callee, bytecode offset for suspended generator frames
Assignee: nobody → loganfsmyth
Status: NEW → ASSIGNED
Attachment #9111203 - Attachment description: Bug 1592431 - Rename Debugger.Frame.prototype.live to .onStack. r=jimb! → Bug 1592431 - Part 1: Rename Debugger.Frame.prototype.live to .onStack. r=jimb!
Attachment #9111204 - Attachment description: Bug 1592431 - Introduce Debugger.Frame.prototype.terminated to check state. r=jimb! → Bug 1592431 - Part 2: Introduce Debugger.Frame.prototype.terminated to check state. r=jimb!
Attachment #9111205 - Attachment description: Bug 1592431 - Support .script on suspended generator frames. r=jimb! → Bug 1592431 - Part 3: Support .script on suspended generator frames. r=jimb!
Attachment #9111206 - Attachment description: Bug 1592431 - Support .callee on suspended generator frames. r=jimb! → Bug 1592431 - Part 4: Support .callee on suspended generator frames. r=jimb!
Attachment #9111207 - Attachment description: Bug 1592431 - Support .offset on suspended frames. r=jimb! → Bug 1592431 - Part 5: Support .offset on suspended generator frames. r=jimb!
Blocks: 1600204
Pushed by loganfsmyth@gmail.com: https://hg.mozilla.org/integration/autoland/rev/3ccdf607f39d Part 1: Rename Debugger.Frame.prototype.live to .onStack. r=jimb https://hg.mozilla.org/integration/autoland/rev/c54ca77cc17b Part 2: Introduce Debugger.Frame.prototype.terminated to check state. r=jimb https://hg.mozilla.org/integration/autoland/rev/b6f777ff55d5 Part 3: Support .script on suspended generator frames. r=jimb https://hg.mozilla.org/integration/autoland/rev/3a3b4395b1da Part 4: Support .callee on suspended generator frames. r=jimb https://hg.mozilla.org/integration/autoland/rev/664889e8c4a6 Part 5: Support .offset on suspended generator frames. r=jimb
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: