[Ext] Console² 0.8 [2011-07-15]
- Philip Chee
- Posts: 6475
- Joined: March 1st, 2005, 3:03 pm
- Contact:
-
- Posts: 123
- Joined: November 5th, 2005, 9:16 am
In an old thread related to this extension (old in computer years at least) at http://forums.mozillazine.org/viewtopic.php?p=1758678, "old zeniko" said:
"unfortunately the platform modifier works only for content and not for skin registration"
This was in connection to http://developer.mozilla.org/en/docs/ch ... ackages.29
Just wanted to point out that the documentation at http://developer.mozilla.org/en/docs/Ch ... ackages.29 states:
"The "platform" modifier is only parsed for content registration, it is not recognized for locale or skin registration. However it applies to content, locale, and skin parts of the package, when specified."
I point this out both in case it helps you to find a more standard way to indicate platform-specific skins and, in case any one can clarify for me how this is done! I don't find the documentation helpful in explaining this. The page at http://developer.mozilla.org/en/docs/Bundles also seems to relate to this, but makes it even more confusing to me. I don't want to hijack the thread if this isn't of relevance to the extension now, but I'd appreciate if someone could send me a message at brettz9 aaat yahoo if they know anything about how to do this. I'd be happy to improve the wiki documentation as a return contribution!
thanks,
Brett
"unfortunately the platform modifier works only for content and not for skin registration"
This was in connection to http://developer.mozilla.org/en/docs/ch ... ackages.29
Just wanted to point out that the documentation at http://developer.mozilla.org/en/docs/Ch ... ackages.29 states:
"The "platform" modifier is only parsed for content registration, it is not recognized for locale or skin registration. However it applies to content, locale, and skin parts of the package, when specified."
I point this out both in case it helps you to find a more standard way to indicate platform-specific skins and, in case any one can clarify for me how this is done! I don't find the documentation helpful in explaining this. The page at http://developer.mozilla.org/en/docs/Bundles also seems to relate to this, but makes it even more confusing to me. I don't want to hijack the thread if this isn't of relevance to the extension now, but I'd appreciate if someone could send me a message at brettz9 aaat yahoo if they know anything about how to do this. I'd be happy to improve the wiki documentation as a return contribution!
thanks,
Brett
-
- Posts: 1
- Joined: January 2nd, 2008, 11:25 am
Firefox 3 Beta 2
Please update for Firefox 3 Beta 2. I need to debug my add-on.
Thanks,
Frank
Thanks,
Frank
- Philip Chee
- Posts: 6475
- Joined: March 1st, 2005, 3:03 pm
- Contact:
I am waiting for Babelzilla to get over their end of year hang-overs and finish off the translations, in the mean time you can install the 0.3.8+ testing version from http://console2.mozdev.org/ (note locales other than en-US may not work).
Phil
Phil
- Philip Chee
- Posts: 6475
- Joined: March 1st, 2005, 3:03 pm
- Contact:
- Philip Chee
- Posts: 6475
- Joined: March 1st, 2005, 3:03 pm
- Contact:
Ooops I was testing the secure update mechanism (the one with the crytographic hashes) for Firefox 3.0b2 and forgot that it also affects Firefox 2.x and all the other supported applications. Anyway it's basically the current version of 0.3.8+ but with a digitally signed install.rdf. I'm going to upload it to AMO as well and once it's up, I'll announce 0.3.9 officially (still need to update the homepage!)
Phil
Phil
- Philip Chee
- Posts: 6475
- Joined: March 1st, 2005, 3:03 pm
- Contact:
<a href="http://downloads.mozdev.org/console2/console2-0.3.9.xpi">Console² 0.3.9</a> replaces the JavaScript Console with what could be the next generation Error Console.
For more information, see our homepage at http://console2.mozdev.org/.
Revision History, Screenshots, Contributors, Source Code, Bugs.
Download
<a href="http://downloads.mozdev.org/console2/console2-0.3.9.xpi">Console² 0.3.9</a>
This release works with Firefox 1.5 to 3.0b2, Thunderbird 1.5 to 2.0, SeaMonkey 1.0 to 1.5a, and most probably the current trunk/branch nightlies.
Console² can also be installed in Flock, Sunbird, and eMusic Download Manager, but compatibility is not guaranteed and we cannot provide any support if you have problems with these applications.
What's new:
Phil
For more information, see our homepage at http://console2.mozdev.org/.
Revision History, Screenshots, Contributors, Source Code, Bugs.
Download
<a href="http://downloads.mozdev.org/console2/console2-0.3.9.xpi">Console² 0.3.9</a>
This release works with Firefox 1.5 to 3.0b2, Thunderbird 1.5 to 2.0, SeaMonkey 1.0 to 1.5a, and most probably the current trunk/branch nightlies.
Console² can also be installed in Flock, Sunbird, and eMusic Download Manager, but compatibility is not guaranteed and we cannot provide any support if you have problems with these applications.
What's new:
* [fix] bug 335383 menu and toolbar accesskeys clash in suiterunner JS console.
* [fix] bug 312247 content is rendered outside the window if width is reduced.
* [fix] Console² bug 17996 badly namespaced spacer causes loop now that mozilla bug 321402 has landed.
* [fix] Console² bug 18025 Secure updates for Firefox 3 (SHA1 Update hashes and public key signatures using McCoy).
* Richlistbox fixes:
** [fix] bug 369077 richlistbox is corrupted if "selected" is inside richlistitem.
** [fix] bug 376815 Allow using a listheader in <richlistbox>.
** [fix] bug 387109 context menu regressions WRT richlistbox.
** [fix] bug 391740 listheader in richlistbox appears to right/at bottom of richlistitems.
** [fix] bug 396545 listheader in richlistbox should not scroll
* [new] http://forums.mozillazine.org/viewtopic ... 03#3020003 Allow themes to theme the Console2 richlistbox.
* [new] Allow themes to theme the Console2 console binding.
* [new] Sign install.rdf and update manifests with McCoy.
Phil
- Philip Chee
- Posts: 6475
- Joined: March 1st, 2005, 3:03 pm
- Contact:
-
- Posts: 3
- Joined: January 18th, 2008, 11:19 am
- Location: Zwolle, The Netherlands
Javascript stack trace
Citation from the FAQ:
How about this:
Question: I'd like to get more detailed error information: timestamp, stack trace, etc.
Answer:I'd like so, too. However, this won't happen before bug 228205 is fixed.
How about this:
Code: Select all
function helloWorld(english, french, german) {
// Get a reference to the function and the function that called it
alert("Function: \n" + arguments.callee.toString());
alert("Called by: \n" + arguments.callee.caller.toString());
// Name is a mozilla-only attribute
if(arguments.name) {
alert("Function name: " + helloWorld);
}
// iterate through any parameters passed to the function
for(var x=0; x<arguments.length; x++) {
alert("Argument " + x + ": " + arguments[x]);
}
}
Rijk J.C. van Haaften
- Philip Chee
- Posts: 6475
- Joined: March 1st, 2005, 3:03 pm
- Contact:
Re: Javascript stack trace
If all you want is the stack trace you could use Components.stack e.g.Cordeo wrote:How about this:Code: Select all
function helloWorld(english, french, german) {
// Get a reference to the function and the function that called it
alert("Function: \n" + arguments.callee.toString());
alert("Called by: \n" + arguments.callee.caller.toString());
// Name is a mozilla-only attribute
if(arguments.name) {
alert("Function name: " + helloWorld);
}
// iterate through any parameters passed to the function
for(var x=0; x<arguments.length; x++) {
alert("Argument " + x + ": " + arguments[x]);
}
}
Code: Select all
function getStackDump()
{
var lines = [];
for (var frame = Components.stack; frame; frame = frame.caller)
lines.push(frame.filename + " (" + frame.lineNumber + ")");
return lines.join("\n");
};
Phil
- Philip Chee
- Posts: 6475
- Joined: March 1st, 2005, 3:03 pm
- Contact:
getting the stack trace manually like this is hacky and not always accurate/possible (and only shows the JS stack trace. You don't get the C++ stack this way) and it would be much better to do this in the core code rather than in an extension. Also see bug 228205 Comment 5 onwards.Cordeo wrote:I see, but why would that not be possible in Console² before the bug mentioned is fixed?
Phil