This content has been marked as final.
Show 4 replies
-
1. Re: Is it possible to obtain line of code from Exception?
Bernd Alheit Oct 10, 2008 4:12 AM (in response to andrejusc)> it seems that I cannot get exact line of code caused that exception from it. Is it possible?
Add DURING, HANDLER, and END_HANDLER macros to all lines. -
2. Re: Is it possible to obtain line of code from Exception?
andrejusc Oct 10, 2008 5:01 AM (in response to andrejusc)That's not elegant solution for me. Any other way to extend those default defines? -
3. Re: Is it possible to obtain line of code from Exception?
Patrick Leckey Oct 10, 2008 5:27 AM (in response to andrejusc)It's also not an effective solution to use only 1 DURING/HANDLER block for a large number of API calls or even for an entire project. You should be grouping your DURING/HANDLER blocks based on when you need them - you don't necessarily need to do 1 for every line, but 1 for every group of calls works quite nicely. That way you can usually tell by the error thrown which method is doing the throwing. -
4. Re: Is it possible to obtain line of code from Exception?
(Aandi_Inston) Oct 10, 2008 7:50 AM (in response to Patrick Leckey)Also, I find that setting a breakpoint in the pimain routine that
handles exceptions (look for "setjmp") is helpful.
Aandi Inston



