opera.postError() and objects

Forums » Dev.Opera » Opera Dragonfly Discussions

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

26. August 2009, 18:30:34

SailorMax

Posts: 485

opera.postError() and objects

Can you add to opera.postError() possible output objects and arrays in console as structure, which user can open and look inside, like in "Scripts/Command Line" or FireFox's console.log()?

thank you.

5. September 2009, 13:02:10

wolfgangradke

Posts: 17

Seems to be partly done. My Opera (V1750) already displayed a console when it ran into some firefox-commands:

var c; try { console.debug(d); c=true; } catch(e) { c=false; }
			if (!c) Ext.dump(d);

the output looked good

Wolfgang

5. September 2009, 13:24:26

wolfgangradke

Posts: 17

Just noticed that this console in opera looks a lot like the console in IE8.

To be precise: I see no difference at all

Wolfgang

1. November 2009, 16:59:53 (edited)

ELV1S

Posts: 46

Originally posted by SailorMax:

Can you add to opera.postError() possible output objects and arrays in console as structure, which user can open and look inside, like in "Scripts/Command Line" or FireFox's console.log()?



I've made <a href="http://github.com/NV/console.js/">console.js</a>. This is attempt to implement Firebug console API into all browsers.

For Opera, console.js posting errors to native error console. And doing it smart:
>>> console.log({x:3, y:5})
{ 'x': 3, 'y': 5 }
My code on bitbucket and github. My UserCSS and UserJS.

Forums » Dev.Opera » Opera Dragonfly Discussions