Catching all errors [Runtime, parsing, etc...]

Hi,

My goal is to catch every kind of errors when application is started, it could be runtime errors, parsing errors, others errors…

Actually, I used your official topic to handle this, but sadly, it doesn’t work when I put errors on others files. (https://coronalabs.com/blog/2013/03/13/wednesday-faq-runtime-error-listener/)

It works when I just put error on main.lua but when I change scene via composer, nothing is triggered.

So, is it possible to catch everything from one point in the app ?

I also saw that “pcall” could be the solution for my problem, but it would be really boring to encapsulate every important function to handle everything, (do not forget that my application is very large).

Have you any solution for me ?

Thx,

Regards,

Have you seen this?

https://docs.coronalabs.com/guide/basics/configSettings/index.html#debug

Rob

Yes, but I partially resolved my problem, composer errors is not triggered by runtime error handling, maybe there are in different level into stack, but now I “xpcall” every composer methods to catch all errors into scene file.

Have you seen this?

https://docs.coronalabs.com/guide/basics/configSettings/index.html#debug

Rob

Yes, but I partially resolved my problem, composer errors is not triggered by runtime error handling, maybe there are in different level into stack, but now I “xpcall” every composer methods to catch all errors into scene file.