I have a unique function for logging messages to the firebug console that I'd like to share:
// Just having fun with names here
function ninjaConsoleLog() {
var slicer = Array.prototype.slice;
var args = slicer.call(arguments);
console.log(args);
}
It's working perfectly, except for one issue. When string values in the array are longer than around 7 words, the firebug console truncates them, showing only the first two and last two words.
For example:
ninjaConsoleLog("This is a long sentence that keeps going and going, just like the energizer bunny.");
The above call results in truncated output in the firebug console:
["This is a long sente...going and going."]
This is problematic when important data is contained within the part of the string that gets cut off.
Firstly, why does this truncation occur?
Secondly, is there any way to make the console display the full string value for each item in the array when using my current log function? Or perhaps view the complete string in the console output?
Or is this limitation unavoidable?
Thank you!!