Open
Bug 973370
Opened 11 years ago
Updated 2 years ago
Limit the output when showing an object in the console
Categories
(DevTools :: Console, enhancement, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: obrufau, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release)
Build ID: 20140216030203
Steps to reproduce:
1. Run the following code:
function fillConsole(n) {
var pre='', o={}, tmp;
for(var i=0; i<n; ++i) pre+= String.fromCharCode(i%95+32);
for(var i=1; i<=10; ++i) o[tmp = pre+i] = tmp;
console.log(o);
}
2. Have fun calling it with a big number, e.g.,
fillConsole(1e5);
Actual results:
The console is filled with a huge amount of data.
Expected results:
There should be some limit!
I think objects shouldn't take more than one or two lines. Displaying object's data is only useful for small ones; but for big ones there's no point in displaying all data in an unreadable way: if someone wants to explore them, he can click to explore them well at the right subpanel.
Updated•11 years ago
|
Updated•11 years ago
|
OS: Windows XP → All
Priority: -- → P3
Hardware: x86 → All
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Type: defect → enhancement
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•