cowboy / javascript-debug

JavaScript Debug: A simple wrapper for console.log
http://benalman.com/projects/javascript-debug-console-log/
GNU General Public License v2.0
434 stars 96 forks source link

Mainting support #1

Open TiTi opened 13 years ago

TiTi commented 13 years ago

Hi,

This commit fix makes your logger works again with most current consoles : -latest stable firebug (1.6) -chrome console (v8 stable) -IE8 dev tools -opera -firebug lite

I'm also planning to add more stuff soon, like: -An hidden div on the page if no console available at all or if an option is setted. Or at least a "tail". -A way to export the history

Cheers and thx for your great jquery plugins!

cowboy commented 13 years ago

What exactly is the problem in current browsers? Do you happen to have a list of side-effects or errors that are occurring?

TiTi commented 13 years ago

On your example page : http://benalman.com/code/projects/javascript-debug/examples/debug/

Firefox 3.6.12 with Firebug 1.6.0 (current stable release) : "this.trace is not a function" => even stop js execution! This is because the first parameter of .apply should not be window but console

Opera doesn't use console.log/warn/... for now but opera.postError

I also had an issue with Chrome 7 but they recently upgrade to version 8 (stable branch) and the error doesn't appears anymore it seems (objects weren't correctly logged, strings were).

cowboy commented 13 years ago

Hmmn.. I'm not seeing any problems in Opera, I've tried in 10.63 and 11.0. What versions are you experiencing this issue in?

TiTi commented 13 years ago

Yep that's because they updated Opera DragonFly: http://my.opera.com/dragonfly/blog/2010/12/03/getting-opera-dragonfly-ready-for-opera-11 (see: "Updated Command Line" -> was not working before). Because of the way opera dragonfly works, you've got the latest dragonfly in 10.63 or 11.0: see "always up to date" on this page http://www.opera.com/dragonfly/ . Or go to "Developer Tools" in opera:config. Another link: http://dev.opera.com/articles/view/introduction-to-opera-dragonfly/

Well thank you for bringing this to my attention I didn't noticed the console.log/info/debug/error is now working in dragonfly. I guess there is no more need to use opera.postError (which was the only "proper" logger in opera). I'm gonna make some modifs soon on my repo.

cowboy commented 13 years ago

Awesome. I'm in the process of a full rewrite of this, actually. I'll post it as soon as I have something good!

pboling commented 11 years ago

:+1: