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)

enhancement

Tracking

(Not tracked)

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:

  1. The user is paused at line 2
  2. The user steps out of the sleep function.
  3. The execution pauses at line 10
  4. 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

Priority: -- → P2
Type: defect → enhancement
Priority: P2 → P3
Whiteboard: [debugger-mvp]
Priority: P3 → P2
Whiteboard: [debugger-mvp]
Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.