Skip to content

Jump back to exception raising position #927

@m-froehlich

Description

@m-froehlich

The Eclipse debugging tools should provide a way to jump back to the line of code, that raised the currently catched exception.

Let's say, I debug the following code.

try { int foo = Integer.parseInt( null ); } catch ( Exception e ) { e.printStacktrace(); }

So, when the debug cursor reaches the foo line and I hit F6 to execute the current line and jump to the next line, the cursor actually jumps to the catch block. If this catch block lives in a totally separated place in another file etc. it can be hard to track/remember, where the malicious line was.

This example is simple an easy to keep track of. But if I have a method or a bunch of methods, searching for a buggy line of code, it can be time consuming to execute it again and again, because you went to fast and didn't remember exactly the last good line, resp. the erraneous line. Often the other class (editor) is even already closed and doesn't live in my own project.

Long story short, it can be very handy to have a button "jump top the exception raising line" when the debugger is in a catch block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions