PDA

View Full Version : how to create a TraceBack in JScript (All)



Rozek
03-06-2003, 05:38 AM
Hello!

Uncaught exceptions (purposefully) thrown in my own code only print a brief indication of the situation as such - without any further hint about where the exception occured (more precise: which functions were active when the exception was thrown) or showing the associated message, at least.

Thinking about constructing the TraceBack myself (using "caller" properties and the possibility to get a functions source code by converting it into a string) I ran into the problem of finding out in which line of a functions source code the next (inner) function was called.

Thus, does anybody know how to get more detailled information about the origin of a thrown exception or how to construct a TraceBack "professionally"?

Thanks in advance for your effort!

Andreas Rozek