Scope Variables in the Debugger are Slow to Load
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(Not tracked)
People
(Reporter: pcardenas, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
Steps to reproduce:
I added a breakpoint into my company's application which has sourcemaps.
Checked show original variables.
Actual results:
Observed that the variables took a long time to load, around 75 seconds
Expected results:
It should load pretty quickly. What I've observed from Chrome is that the variable names will load very quickly, but it aggressively lazy loads objects properties and array items, I observed this slowness in chrome when I tried to inspect a 200 element array of objects. It appears that in Firefox that the entire shape of the variable values are loaded in this initial load, because there is no lag when opening up the variable values.
My preferred solution is to lazy load in the background, and having loading indicators if a property is loading.
Additionally, this slowness seems relatively recent, I'd be happy to try out a previous release to A/B test if relevant.
To add on, the slowness in Chrome appears to get better over time and has better initial load and incremental load times.
Comment 3•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Debugger' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 4•1 year ago
|
||
Hello pcardenas, thanks for the report.
We know that loading scopes with original scopes is pretty slow, and we're currently working on making it fast :)
Just to make sure that we're not missing anything, could you record a profile and share it here, using https://profiler.firefox.com/ so we can check that it's the slowness we're aware of.
And yes, if you can do the same with previous version you think are not showing the slowness, it would be really helpful
Updated•1 year ago
|
Comment 5•1 year ago
|
||
A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Given that the bug is still UNCONFIRMED, closing the bug as incomplete.
For more information, please visit BugBot documentation.
Description
•