microsoft / vscode-java-test

Run and debug Java test cases in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test
Other
297 stars 132 forks source link

Debugging Tests fails: Unrecognized option: -Xnoagent #1737

Closed jochen-lise closed 1 month ago

jochen-lise commented 1 month ago

I try to debug a specific test but it fails with the following message

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.

Any ideas? Could this be related? https://github.com/microsoft/java-debug/issues/561

jdneo commented 1 month ago

Have you tried to use the latest pre-release version of java debugger?

jochen-lise commented 1 month ago

@jdneo Hello, thank you very much! With version the Debugger v0.58.2024090204 (pre-release) everything works as expected! :)