Closed
Bug 1476667
Opened 6 years ago
Closed 6 years ago
Step over should not take two steps to leave a function which has a return
Categories
(DevTools :: Debugger, enhancement, P3)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jlast, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Currently step over stops twice at the end of functions with a return value. This is because the first pause is the onStep and the second is the onPop. We want to prevent the first one because it doesn't show the completion value and is redundant.
> function f() {
> return 2;
> } // <--- pauses twice here
This PR fixes that, but we should also in the engine so we do not need an empty point. https://github.com/devtools-html/debugger.html/pull/6660
Reporter | ||
Updated•6 years ago
|
Blocks: js-devtools
Priority: -- → P3
Comment 1•6 years ago
|
||
Here's an example where this behavior of jumping to the end causes unintuitive stepping behavior.
Comment 2•6 years ago
|
||
This is caused by the position being set at https://searchfox.org/mozilla-central/rev/c296d5b2391c8b37374b118180b64cca66c0aa16/js/src/frontend/BytecodeEmitter.cpp#6123
Reporter | ||
Updated•6 years ago
|
Blocks: dbg-stepping
Reporter | ||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Yeah, now that https://bugzilla.mozilla.org/show_bug.cgi?id=breakpoint-specificity limits the stepping locations, this weird bytecode position metadata isn't an issue for us.
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(lsmyth)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•