Re: How to stop at the crash source statement when debugging with Eclipse ?
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 17:23:16 GMT
"Jochen Brenzlinger" <jochen2@xxxxxxx> wrote in message news:442d3304$0$17575$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Assume I have a java project in Eclipse and start to debug it.
The first stop is at main() function - ok. Then I hit F8 (=Resume)
and the program runs until an unknown crash statement.
The only information I got is the trace stack in the output window.
But what I want is that the statement pointer in the debug source window
jumps to exactly this (last) statement before the crash.
When I can achieve this I can peek e.g. into certain variable values.
Currently neither the statement exection pointer jumps to this critical statement
nor there is a statement pointer at all.
How do I get such a "jump-and-show-before-crash" in the source window ?
This "crash" is actually an uncaught exception. You can configure the Eclipse debugger to stop at all thrown exceptions, or only thrown exceptions which are uncaught, or only thrown exceptions that are caught. To be safe, have it stop at all exceptions.
Alos, if you're running the program via Eclipse, the stack trace should have a bunch of filenames and line numbers which act liek hyperlinks. If you click on the uppermost one, it'll take you to line in the source code where the exception is being thrown.
- Oliver
.
- Prev by Date: Re: Java Socket Programming
- Next by Date: Re: Debugging in Eclipse: How-to "Step-into only if source available" ?
- Previous by thread: Re: How to stop at the crash source statement when debugging with Eclipse ?
- Next by thread: listen to an existing browser
- Index(es):