Wtx ~ Wt Extension Library
WtxLib
|
For one, check out the Exceptions Notification method of hooking the event handler in the main Wt control loop. That little technique goes a long way towards letting you know when bad things happen in your app.
In the event you get a std::exception with no explanation, then what you can do is run your application with gdb, and when you do so, there are a couple of commands you can execute before running the application that will catch a throw and show you what was happening right up before the throw.
The following commands came from this blog post on stack overflow:
https://stackoverflow.com/questions/2443135/how-do-i-find-where-an-exception-was-thrown-in-c
This little gem is super handy, because you can just let your app run, and when it throws, gdb will immediately spit out a back-trace, and will (probably) take you straight to the offender.