Hi,

I wonder if there is a way to improve the stacktrace that is displayed when
an error inside an callback occurs. For example, I am getting this error:

009158 qx.io.remote.RequestQueue[73-0]: Request qx.io.remote.Request[2244-0]
handler _oncompleted threw an error:  TypeError: undefined is not a function
https://bibliograph2-c9-cboulanger.c9.io/bibliograph/source/script/bibliogr…langer.c9.io/bibliograph/source/script/bibliograph.560673742eeb.js:4220:31
bibliograph.6280d6fb147e.js:284qx.Bootstrap.define.statics.process
bibliograph.6280d6fb147e.js:284qx.Bootstrap.define.statics.__log
bibliograph.560673742eeb.js:15062qx.Bootstrap.define.statics.error
bibliograph.560673742eeb.js:14809qx.Mixin.define.members.__logMessage
bibliograph.560673742eeb.js:15374qx.Mixin.define.members.error
bibliograph.560673742eeb.js:15350qx.Class.define.members._oncompleted
bibliograph.560673742eeb.js:30720qx.Class.define.members.dispatchEvent
bibliograph.560673742eeb.js:20635wrappedFunction
bibliograph.560673742eeb.js:4220qx.Class.define.members.dispatchEvent
bibliograph.560673742eeb.js:17603qx.Class.define.statics.dispatchEvent
bibliograph.560673742eeb.js:18004qx.Mixin.define.members.dispatchEvent
bibliograph.560673742eeb.js:18340qx.Class.define.members._applyState
bibliograph.560673742eeb.js:31904(anonymous function)
VM1654:3qx.Class.define.members._oncompleted
bibliograph.560673742eeb.js:31697qx.Class.define.members.dispatchEvent
bibliograph.560673742eeb.js:20635wrappedFunction
bibliograph.560673742eeb.js:4220qx.Class.define.members.dispatchEvent
bibliograph.560673742eeb.js:17603qx.Class.define.statics.fireEvent
bibliograph.560673742eeb.js:18035qx.Mixin.define.members.fireEvent
bibliograph.560673742eeb.js:18360qx.Class.define.members._applyState
bibliograph.560673742eeb.js:36821(anonymous function) VM1211:3(anonymous
function) bibliograph.560673742eeb.js:36359(anonymous function)
bibliograph.560673742eeb.js:12094(anonymous function)
bibliograph.560673742eeb.js:11730

As far as I can see, it is impossible to see from this stacktrace where the
actual error occurred:

- not in qx.io.remote.Request, line 2244
- not in bibliograph.560673742eeb.js:4220:31
- and not in any of the other lines given in the stacktrace

In sum, the stacktrace shows the internal processing of the error, but not
the source of the error. 

The problem is, as I understand, the async nature of the callback, but maybe
anyone has found a good solution to this problem. As it stands, one can find
the source of these kind of errors only with good intuition about what
happens before the error occurs.

Thanks!




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/qooxdoo-Stacktrace-problems-tp7586130.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to