Open Bug 1661696 Opened 4 years ago Updated 4 years ago

Default expanded view should include all scopes up to the function's parameters

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: Honza, Unassigned)

Details

Attachments

(1 file)

Originally reported here: https://github.com/firefox-devtools/debugger/issues/5754

STR:

  1. Break into a function that has parameters

The default expanded view only has the current block. It would be very useful to have all scopes expanded up to the current function's arguments.
Especially even when breaking at the first line of a function, at the outermost block of the function, the argument's scope isn't expanded.

As a bonus: it may be a good idea to open more enclosing scopes when we detect the function is small, but I understand this can be more work, and I'd already be very satisfied with the first part of the issue.

Honza

Attached image image.png

Test case: http://janodvarko.cz/tests/bugzilla/1661696/

  1. Break on line 17 on console.log(i)
  2. Function arguments should be visible by default

Honza

Has STR: --- → yes

:Honza, if you think that's a regression, then could you try to find a regression range in using for example mozregression?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: