Skip to content

Debug Launch reports "Can't connect to JVM" but debugging seems to work fine #176

Open
@poconnor-lab49

Description

@poconnor-lab49

With a Quarkus Run/Debug Application launch configuration the quarkus project runs fine, but if you run in debug mode Eclipse throws an error even though the debugger seems to have already connected. In fact, it seems like the debugger connects whether you choose either Run or Debug, so you don't need to use the debug launch configuration at all?

Looks like the debug connection is already established by Eclipse, so https://github.com/jbosstools/jbosstools-quarkus/blob/main/plugins/org.jboss.tools.quarkus.core/src/org/jboss/tools/quarkus/core/launch/QuarkusLaunchConfigurationDelegate.java#L92 can't connect?

Copy of error

eclipse.buildId=4.23.0.I20220308-0310
java.version=17.0.2
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -data /home/redacted -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product

org.jboss.tools.quarkus.core
Error
Wed May 04 14:58:48 EDT 2022
Can't connect to JVM

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