Open Bug 1721357 Opened 3 years ago Updated 2 years ago

Only store at most 100 breakpoints in asyncStorage

Categories

(DevTools :: Debugger, task)

task

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

References

(Blocks 1 open bug)

Details

When storing breakpoints in asyncStorage (see devtools/client/debugger/src/utils/bootstrap.js#112-114), we take the full list of breakpoints (i.e. the list of all the breakpoints that were set by the user over time, regardless of the origin).
This list can grow indefinitely and there's no way for the user to clean it up.

We might want to introduce some limit to this list, for example only storing the last 100 breakpoints.
This means we'd have to add a timestamp when a breakpoint is set so we can prune the oldest ones

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