js-console.pl - send STDIN to the Javascript Console
tail-console.pl -f
Options: --clear Clear console before receiving new messages --follow Read more messages as they are being added --mozrepl connection string to Firefox
Clear the console before sending the text.
Keep watching the console and output text as it gets added.
Connection information for the mozrepl instance to use.
This program reads messages from the Error Console and sends them to STDOUT.
https://developer.mozilla.org/en/Error_Console
https://developer.mozilla.org/en/nsIConsoleService - the underlying Console Service that also shows how to listen to events getting added.
To install WWW::Mechanize::Firefox, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Mechanize::Firefox
CPAN shell
perl -MCPAN -e shell install WWW::Mechanize::Firefox
For more information on module installation, please visit the detailed CPAN module installation guide.