Open
Bug 1523895
Opened 7 years ago
Updated 4 years ago
Stepping out from an async function containing another debugger keyword doesn't work correctly
Categories
(DevTools :: Debugger, enhancement, P3)
DevTools
Debugger
Tracking
(Not tracked)
NEW
People
(Reporter: Honza, Unassigned)
References
(Blocks 1 open bug)
Details
This use case demonstrates stepping out from an async function that contains another debugger; keyword
Initial state: foo calls sleep and the user is paused at the debugger keyword at line 2
1. async function sleep(n) {
2. debugger; // step out from here
3. await new Promise(r => setTimeout(r, n));
4. debugger;
5. return new Promise(r => setTimeout(r, n));
6. }
7.
8. async function foo() {
9. const s = sleep(1000);
10. let a = 100;
11.}
STR:
- The user is paused at line 2
- The user steps out of the sleep function.
- The execution pauses at line 10
- BUG => the debugger doesn’t pause at line 4 when another debugger keyword is.
This use case is not working as expected.
Online example #4:
https://statuesque-cover.glitch.me/
Honza
| Reporter | ||
Updated•7 years ago
|
Blocks: dbg-async-step-out
Priority: -- → P2
Updated•7 years ago
|
Type: defect → enhancement
Priority: P2 → P3
Updated•7 years ago
|
Whiteboard: [debugger-mvp]
| Reporter | ||
Updated•7 years ago
|
Priority: P3 → P2
Updated•7 years ago
|
Whiteboard: [debugger-mvp]
Updated•7 years ago
|
Priority: P2 → P3
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•