--
You received this message because you are subscribed to the Google Groups "pencilcode-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pencilcode-develo...@googlegroups.com.
To post to this group, send email to pencilcode-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Actually, now I think of it, callbacks are only a problem if you're not the one calling them- it would be possible to shadow callback-taking functions, so that when a callback happens, the actual callback is a function that runs user code in a debugger / passes control of user code to some global debugger. (Is user code already sandboxed?)
It wouldn't even be too hard to write a function that does that wrapping.
(I'm not sure what having multiple simultaneous call stacks in a debugger would look like, but that's a surmountable problem.)
-James Gilles