Skip to content

Any way to mitigate issues with base classes and child classes? #108

@davidmichaelkarr

Description

@davidmichaelkarr

Using Eclipse 2024-03 and the latest ECD.

The title is vague because it's impossible to put this concisely. I'll describe it with a basic example.

I'm debugging a problem with embedded Tomcat startup. I've set breakpoints in "org.apache.catalina.core.StandardContext" using the decompiler view of that class.

When I run the service using embedded Tomcat, it hits the breakpoints, but with the use of the "org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedContext" class, which is a subclass of StandardContext. As a result, it shows an editor buffer for "TomcatEmbeddedContext(StandardContext)" and shows "Source not found" and "Edit Source Lookup Path...".

This is not fatal, just really tedious. I can see the stacktrace, and it shows the line number in the class, so in the Decompiled view, I can go to that line, and if I do "Step Over", I can see the line number in the stacktrace change, but of course nothing changes in the Decompiler view, because the debugger doesn't think we're in that class. The Variables pane is all correct, I just have to go back and forth from the stacktrace to the Decompiled view to see where I am.

It seems pretty likely the problem is due to the use of the subclass.

Is there any way to mitigate this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions