Firebug Multiple Lines In Console Not Working Properly
Firebug doesn't show all lines in console. If my code looks like this: var arr=[4,3,2]; console.log('console'); arr; result is in two lines as it should be: console [4, 3, 2]
Solution 1:
Firebug and other browser developer tools output the return value of the evaluated script. Because there can only be one return value, you only get one output.
If you want to get more outputs, you need to use the Console API methods like console.log()
.
Instead of using the console for debugging your code, you may want to use the JavaScript debugger instead. In Firebug the debugger is available within the Script panel. This allows you to stop the script execution at some line and see the values of all variables at that specific point of your code.
Post a Comment for "Firebug Multiple Lines In Console Not Working Properly"