Robin Rodricks
Robin Rodricks

Reputation: 114126

How do you use the multi-line Console in Firebug?

The Firebug addon for Firefox supports a multiline Console, but how do you return values to show up in the Console's output? When I press "Run", all I see is a copy of my source code.

Upvotes: 0

Views: 1548

Answers (2)

Brian Ramsay
Brian Ramsay

Reputation: 7635

Are you looking for console.log(obj); or console.log("hello world");?

Upvotes: 2

Robin Rodricks
Robin Rodricks

Reputation: 114126

Okay, I got it. The last line of the multiline source code must return a value, to be outputted.

Eg.

var myVar = myFunction();
myVar;

Upvotes: 0

Related Questions