[kaffe] More Debugging woes
robilad at yahoo.com
Tue Oct 22 06:35:03 PDT 2002
--- Fabio Fracassi <fracassi at cs.uni-bonn.de> wrote:
> Somewhere in or during calling an
> NullPointerException gets thrown, but the
> stacktrace only shows the frames up to HashMap.
> Now my Problem is I can't find out which equals()
> method gets called. It
> should be java/lang/Object.equals(), but that
> doesen't get called.
> Now my Question is this, How can I find out where
> !exactly! the exception is
> thrown? How could I step throu the Java code, to
> find out which equals()
> method does get called?
If in doubt, compile --with-engine=intrp and
--enable-debug, set all debug flags for intrpeter and
exceptions, and run the thing in your debugger. You
should get a reasonable trace of bytecode as it gets
interpreted, and that should help you figuring out
what happens where and why. The downside is that it
can take quite a bit of time.
Or you could disassemble the jit output, of course, if
you know what you're doing ;)
Or you might consider looking at a cool kaffe debugger
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
More information about the kaffe