You need to be logged in to post in the forums. If you do not have an account, please sign up first.
console.log
Is there going to be equivalents for the firebug command line API?i.e. console.log, console.debug, console.info, console.warn, console.assert, etc
See http://getfirebug.com/console.html for more.
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody
7. May 2008, 16:47:36 (edited)
@devs: Keep in mind firefox has console dot warn, info, log, error, and debug to distinguish between levels of importance. Here is a relatively complete listing with a description of each.
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody
8. May 2008, 14:35:25 (edited)
window.console = window.console || {} /* don't overwrite console if there is one */
console.log || (console.log = opera.postError)
function debug(text) {
((window.console && console.log) ||
(window.opera && opera.postError) ||
window.alert).call(this, text);
}Something i use commonly... but that's beside the point.Native support of console.* would be optimal though.
@porneL: Where'd you get that invalid syntax from?
console ||= {}o rly?console = {log: opera.postError}
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody
I would hate to write error logging dispatcher layer for each browser...
Please make it compatible.
extendopera.org • Report bugs to public BTS

Dragonfly needs a better console, including support for the console.* API. It's going to happen.
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work
Looking forward very much to see it implemented. I hope the console.* methods will support n arguments, so that you don't have to concatenate stuff with "+", like you currently have to in the developer tools of Safari.
It would also be great to be able to further explore something you logged. For example if it is a Reference to a dom object it would be great to highlight it, if it an some object with members I'd like to see them etc.
--- The future has arrived, it's just not
--- evenly distributed. - William Gibson
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody
Originally posted by fearphage:
By fearphage Wednesday, 7. May 2008, 20:47:09function debug(text) {
((window.console && console.log) ||
(window.opera && opera.postError) ||
window.alert).call(this, text);
}Something i use commonly... but that's beside the point.Native
Really great.
I'll use me too.
^__^
Originally posted by fearphage:
support of console.* would be optimal though.
fully subscribe
As an aside: I'm sorry, as usual, we can't be specific with timelines, nor with making forward-looking statements about exactly how the feature will work, but we will do our best to make the feature a strong one.
Opera Software ASA.
Last example I saw: http://www.themaninblue.com/experiment/Cubescape
After you click on any "cube creation " it starts drawing cube by cube, and there is a button "Stop animation" which doesn't work...
P.S. More good cubescape examples.
extendopera.org • Report bugs to public BTS
if (window.opera && !window.console) {
window.console = {};
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
for (var i = 0; i < names.length; ++i)
window.console[names[i]] = function() {}
window.console.info = function() {
opera.postError(arguments);
}
} If your argument that is something is comming for next Opera Dragonfly, it will come for Opera 9.5+, but web devs still need to test in Opera 9.2x too...extendopera.org • Report bugs to public BTS
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody

extendopera.org • Report bugs to public BTS
if (window.opera && !window.console) {
window.console = {};
function fn() { opera.postError(arguments); };
['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd',
'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function(name) {
window.console[name] = fn;
});
}
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody
extendopera.org • Report bugs to public BTS
Originally posted by FataL:
Dragonfly works in 9.5 and greater so that is moot.Array.forEach is not supported by Opera 9.27
Originally posted by Dragonfly release blog post:
Support for Dragonfly in Opera 9.5 beta 2
Originally posted by FataL:
I think that is a bug/fault in the documentation. Opera has supported all the array methods of js 1.6 since 9.5... i thinkAnd seems that officially not supported in Opera 9.5 at least.
The main point and difference between my code and yours was that all functions "work" to some extent instead of doing nothing. The forEach was just a style preference.
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody
Originally posted by dstorey:
Quite possibly Presto 2.4
That is a long ways off. Assuming 2.2 goes final before 2010. We're looking at multiple years. *sad face*My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody
Originally posted by dstorey:
Quite possibly Presto 2.4
That is a loooong ways off. Assuming 2.2 goes final before 2010. We're looking at multiple years. *sad face*My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody