How to stop Firebug from truncating lines in the console?

During debugging, I often dump strings and arrays to the console. But in some cases, Firebug interrupts string values, making it more difficult to assure results.

For example, this code in the console:

console.log ( [ "123456789A123456789B123456789C123456789D123456789E123456789F123456789G", "123456789A123456789B123456789C123456789D123456789E123456789F123456789G" ] ); 

Productivity:

 [ "123456789A123456789B123...89E123456789F123456789G", "123456789A123456789B123...89E123456789F123456789G" ] 

(Poorly!)


The only line is fine. It:

 console.log ("123456789A123456789B123456789C123456789D123456789E123456789F123456789G"); 

Productivity:

 123456789A123456789B123456789C123456789D123456789E123456789F123456789G 

as was expected.

But, arrays and objects are shrinking.
How to stop this behavior? This is mistake? (My Google-Fu failed, yet.)

+7
source share
3 answers

Well, after striking out the Firebug Settings list (there are 204 of them right now, and not in explicit order), I found stringCropLength .

The default is 50 , which makes sense because the test strings were truncated to 123456789A123456789B123...89E123456789F123456789G , whose length is 49 characters.

Opening about: config and setting extensions.firebug.stringCropLength to 0, stopping line truncation!

Please note that according to Problem 5898: Imagine various settings for trimming a string , this preference may affect several things (for now). But so far, I have not seen any negative consequences from the fact that this set was not a β€œtrim”.

+7
source

Use console.dir instead of console.log - the output is + next to it, which allows you to expand the line.

+5
source

Use the console.dir ("....") function instead of console.log ("...") You may also be interested in looking at the firebug settings

+3
source

All Articles