Sebastian Werner schrieb:
Ok. But even this would not work on page unload because finally Firebug
cleans up the log when the page is left.
In my version firebug does NOT clean up the log. The error message stays
even if the application is successfully reloaded.
So until the solution is available this patch helps lots of developers
find the bugs in their applications.
Better would be to use
something which holds on the execution like alert(). But this could mean
a massive numbers of alerts one have to click away. I would better like
to replace all console.* with qx.core.Log.* and let use this class
Firebug if available. This is the real solution. All other modifications
play around the bug, but don't really mean a solution :)
Sebastian
Dietrich Streifert schrieb:
Sebastian Werner schrieb:
You should definitly fix your application. You can do this by executing
qx.core.Object.dispose() in Firebug. Then the 'console' continues to work.
You misunderstood my intention.
I wanted to re-throw the original exception whith a new throw message. I
don't want to hide the exception.
Here is the code:
Index: X:/www/qooxdoo/frontend/framework/source/class/qx/core/Object.js
===================================================================
--- X:/www/qooxdoo/frontend/framework/source/class/qx/core/Object.js
(revision 8736)
+++ X:/www/qooxdoo/frontend/framework/source/class/qx/core/Object.js
(working copy)
@@ -167,7 +167,13 @@
}
catch(ex)
{
- console.warn("Could not dispose: " + vObject + ": " + ex);
+ try
+ {
+ console.warn("Could not dispose: " + vObject + ": " + ex);
+ }
+ catch(exc) {
+ throw new Error("Could not dispose: " + vObject + ": " + ex);
+ }
}
}
}
Sebastian
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel