When debugging a Java 21 project in VS Code, evaluating any expression that contains a lambda in the Debug Console causes the debugger to hang indefinitely; the session must be force-killed.
Environment
- VS Code 1.98, Java extension 1.41.3
- JDK 21 (Temurin), Windows 11
Repro
- Set a breakpoint inside a method.
- When paused, type a lambda expression in the Debug Console, e.g. \list.stream().filter(x -> x > 0).count().
- The evaluation never returns; the debug session becomes unresponsive.
Impact
Blocks debugging for any code using streams/lambdas. No workaround other than avoiding lambda evaluation. This appears to be a regression-like blocker for Java 21 users.
When debugging a Java 21 project in VS Code, evaluating any expression that contains a lambda in the Debug Console causes the debugger to hang indefinitely; the session must be force-killed.
Environment
Repro
Impact
Blocks debugging for any code using streams/lambdas. No workaround other than avoiding lambda evaluation. This appears to be a regression-like blocker for Java 21 users.