Debugger shows popup for the wrong variable in the presence of long strings
Categories
(DevTools :: Debugger, defect)
Tracking
(Not tracked)
People
(Reporter: psychpsyo, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Steps to reproduce:
- Write some code that handles strings long enough for the string preview in the debugger to be broken across multiple lines.
- Debug said code, stepping through it line-by-line.
- Notice that the popups for field below the gap that the long string preview causes are generally inaccurate and belong to other variables around the hovered one.
Actual results:
I hovered over a variable of mine and the devtools claimed it to be the JSON.parse() function that was actually a line above.
Expected results:
The popup should've shown information relevant to my variable.
Comment 2•3 months 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 3•3 months ago
|
||
Thanks for filing, I can reproduce on Release and DevEdition, but the bug seems to be fixed for me on Nightly. Can you test and see if it is fixed for you?
Comment 5•3 months ago
|
||
codemirror 5 still has the issue. You need to have wrapping disabled
It seems fixed on Nightly for me as well.
Comment 7•3 months ago
|
||
It looks like this is fixed by CM6. I'll close.
Thanks
Description
•