Hi John,

I've been looking for ways to catch and report run-time errors in the
application.  Lua errors are covered with your recent support for
EVT_LUA_ERROR (http://sourceforge.net/p/wxlua/svn/180/), but there are
still fatal exceptions in the application that may happen.

As far as I can see from wxwdigets docs, these are controlled by
wxHandleFatalExceptions and OnFatalExceptions; wxlua does provide a
methods for wxHandleFatalExceptions, but I don't see anything similar
to OnFatalExceptions? How do I get set up a handler that gets called
when a fatal exception happens? It would be super useful to also have
a way to access Lua state from it to gather Lua stack information to
include in the crash report. Or is there an existing alternative I am
missing?

Would it be possible to use OnFatalExceptions to set a callback (a Lua
function) that will be called when a fatal exception happens?

While we are on the topic of crash reports, there is wxDebugReport,
but it doesn't seem to be available in the binding. Does it make sense
to expose it, or is it better try to gather and report as much as
possible at the Lua level?

Also, there are some other methods documents (OnExceptionInMainLoop
and OnUnhandledException) and I can't figure out if these are also
needed or if OnFatalExceptions is enough if exposed in wxlua. Thank
you!

Paul.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to