Skip to content

[critical] Fail to debug with java 23 - Unrecognized option: -Xnoagent #561

Description

When trying to debug a program using java 23 EA version I get the following error

penJDK 64-Bit Server VM warning: Option -Xdebug was deprecated in JDK 22 and will likely be removed in a future release.
Unrecognized option: -Xnoagent
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Activity

  1. gayanper commented on Jul 18, 2024

    @gayanper
    ContributorAuthor

    Jinbo Wang (@testforstephen) Seems like this is cause by the line

  2. testforstephen commented on Jul 18, 2024

    @testforstephen
    Contributor

    thanks for the reminder. We reference this parameters -Xdebug and -Xnoagent from the old JDT source code, it's time to remove them since they're deprecated.

  3. jochen-lise commented on Oct 25, 2024

    @jochen-lise

    Hello, i get the same error today, trying to debug some tests

    OpenJDK 64-Bit Server VM warning: Option -Xdebug was deprecated in JDK 22 and will likely be removed in a future release.
    Unrecognized option: -Xnoagent
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    
  4. testforstephen commented on Oct 25, 2024

    @testforstephen
    Contributor

    Jochen Wikenhauser (@jochen-lise) thanks for reporting the issue. This has been fixed in pre-release version 0.58.x of Java Debugger extension. Pls try the pre-release version.

  5. jochen-lise commented on Oct 28, 2024

    @jochen-lise

    Jinbo Wang (@testforstephen) Hello, thank you very much! With version v0.58.2024090204 (pre-release) everything works as expected! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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