Closed Bug 868172 Opened 11 years ago Closed 11 years ago

Web Console's de-duplication causes multiple prints of objects to only show one state.

Categories

(DevTools :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 865288

People

(Reporter: mythmon, Unassigned)

Details

Consider this code: 

var o = {'foo': 1};

for (var i = 0; i < 5; i++) {
  console.log(o);
  o.foo++;
}

With this code, the developer tools will indicate that "[Object object]" was printed 5 times, and if you click on this line, it will expand the variables in a panel on the right. This panel will only show the last iteration of the loop, and the other instances of the print will simply be lost.

STR: http://jsbin.com/iwuciz/1/edit

Expected: 5 lines in the web console, for each of the 5 different stats of the objects.

Actual: Only one line, showing only one state of the object.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.