Open Bug 1745143 Opened 3 years ago Updated 3 years ago

Race condition: The original source has not been created yet when the debugger needs to pause on breakpoint

Categories

(DevTools :: Debugger, defect, P2)

Firefox 94
defect

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: bomsy, Assigned: bomsy)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

STR
Clone https://github.com/vuejs/petite-vue
yarn && yarn dev
Open devtools on http://localhost:3000/
Go to http://localhost:3000/tests/html.html
Open the debugger
Click this source from the source tree Users/hubertbomamanilla/Projects/petite-vue/src/ -> app.ts
Set breakpoint on line 13
Reload the page

ER
The debugger should pause on breakpoint
No warning in the browser console
AR

The debugger cannot find original source and logs a warning in the browser console.

The issue here was sourcemapped (original) files are throttled using the SourceQueue so
sometimes on reload the original sources gets created late, and the source for the selected frame
does not yet exist when it is needed.

The SourceQueue is currently only used to for sourcemapped files, it's worth using the
opportunity to clean it all up.

Assignee: nobody → hmanilla
Status: NEW → ASSIGNED

The severity field is not set for this bug.
:Honza, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(odvarko)
Severity: -- → S3
Depends on: dbg-sources
Flags: needinfo?(odvarko)
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: