Skip to content

Bug: Java debugger hangs when evaluating expressions with lambdas (JDK 21) #7

Description

@chagong

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

  1. Set a breakpoint inside a method.
  2. When paused, type a lambda expression in the Debug Console, e.g. \list.stream().filter(x -> x > 0).count().
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: highHigh priority / blocking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions