Open RealyUniqueName opened 7 years ago
That's an important thing to consider. However, having this always enabled will have a negative effect on performance, so maybe this should only be enabled with -debug
or some other flag.
In my implementation i collect positions of async stack at compile time as strings, which is pretty cheap. And then attach a runtime stack clipped from the place it was requested to the nearest await
.
haxe.CallStack.callStack()
andhaxe.CallStack.exceptionStack()
should contain valid stack including suspend points. Maybe add aSuspend(item:StackItem)
constructor toStackItem
enum. Example:Exception stack for
Terrible error
should be like this: