Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » Opera Dragonfly Discussions

Discuss Opera Dragonfly, Opera's new developer tools.

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By SailorMax anchor Wednesday, 26. August 2009, 18:30:34

avatar

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.

By wolfgangradke anchor Saturday, 5. September 2009, 13:02:10

avatarSeems 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

By wolfgangradke anchor Saturday, 5. September 2009, 13:24:26

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

To be precise: I see no difference at all

Wolfgang

By ELV1S anchor Sunday, 1. November 2009, 10:59:51

avatar

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 console.js. 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 }

Post edited Sunday, 1. November 2009, 16:59:53

Moderators: pepelsbey | dstorey | operadev | chrismills | shwetankdixit | brucelawson | iheni | andreasbovens | zibin | mollydotcom