Hi I would like to understand if there is a way to intercept the last instruction executed before an error occurs (obviously by executing the code from the xojo ide, therefore in debug mode).
I saw that it is possible to add the line number to the code, I would like to understand if (perhaps with introspection), when an error “intercepted” by a catch occurs, it was possible to trace the function, subroutine, webpage, webcontrol and number of the line of code executed before the error was triggered.
On the Project menu, select “Break on exceptions” and then run your code. Xojo will stop at the line that caused the error, even if you have any form of error handler in place.