javascript - Firebug console shortening strings in array logged? -
I have a custom logging function to enter the Firebug console that looks like this:
// Here the name is for fun function ninjaConsoleLog () {var slicer = Array.prototype.slice; Var args = slicer call (logic); Console.log (args); }
And it works just as I want it ... except that if I have string values over 7 words in the array, then the firebug console string value Except for the first two words and the last two words (approx.)
Example:
Ninja console log ("This is a long string, like energetic, It only keeps on moving and going. ");
Function call result in the following output in the FireBug console:
["It is a long duration ... going and going. " ]
It would be fine, except that sometimes the part of the string which is important in the console briefly
First of all, why is this?
Second, with my current logging function, can I force the console to output the full string value for each item array? Or look at the entire string when viewing the output of the console?
Or is it not possible?
Thank you !!
console.ir instead of console.log (args) Args)
With this you should be able to click on them in the box box to expand their values in their full values in the Firebug console, either a plus or when If you mouse over the price, it will be underlined, meaning that clicking on it will increase its full value
Comments
Post a Comment