Re: line number that generated exception
Antonio <[email protected]> Mon, 12 Mar 2007 22:49:01 +0100
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
Hi again, It seems that: SchemeException.e -> Closure SchemeException.f -> CallFrame Now, it's the CallFrame that has a "tracer" instance, but this is null :-( How can I enable tracing? Thanks, Antonio Scott G. Miller wrote: > On Mon, Mar 12, 2007 at 09:57:50AM +0100, Antonio wrote: > >> Hello all, >> >> Is it possible to determine which line in a source file generated a >> SchemeException? If so, how? >> > > Yes, that is possible. The SchemeException contains the continuation of > the error, in the "e" field. It should be a Continuation, in which case > it has a "tracer" member, which can get you the stack trace by calling > its toValue() method. For all of this to work, stack tracing must be > on, which it is by default. > > Scott > > > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV