Closed Bug 1926364 Opened 3 months ago Closed 3 months ago

Debugger shows popup for the wrong variable in the presence of long strings

Categories

(DevTools :: Debugger, defect)

Firefox 131
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1904489

People

(Reporter: psychpsyo, Unassigned)

Details

Attachments

(2 files)

Attached file repro.html

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0

Steps to reproduce:

  1. Write some code that handles strings long enough for the string preview in the debugger to be broken across multiple lines.
  2. Debug said code, stepping through it line-by-line.
  3. 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.

Attached image screenshot.png

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.

Component: Untriaged → Debugger
Product: Firefox → DevTools

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?

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(psychpsyo)

Nicolas will run mozregression on this.

Flags: needinfo?(nchevobbe)

codemirror 5 still has the issue. You need to have wrapping disabled

Flags: needinfo?(nchevobbe)

It seems fixed on Nightly for me as well.

Flags: needinfo?(psychpsyo)

It looks like this is fixed by CM6. I'll close.

Thanks

Status: NEW → RESOLVED
Closed: 3 months ago
Duplicate of bug: 1904489
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: