Skip to content

Feature request: Add support for lambda and reference expressions in debug evaluation #281

Closed

Description

Current behaviour:

Stream.of(strings).forEach(s -> System.out.println(s))
Lambda expressions cannot be used in an evaluation expression
Stream.of(strings).forEach(System.out::println)
Reference expressions cannot be used in an evaluation expression

Activity

  1. andxu commented on Apr 23, 2018

    @andxu
    Contributor

    Eclipse doesn't support it and we are leverage their jdt libraries for expression evaluation, so it will be a big change to have a own implemented expression evaluation, see https://stackoverflow.com/questions/42346169/java-eclipse-lambda-expressions-cannot-be-used-in-an-evaluation-expression?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

  2. bkbonner commented on Feb 6, 2019

    @bkbonner

    Is this still true? I followed the path. It sort of critical to be able to debug lambdas.

    It looks like the bug in eclipse is here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=448473 (the other bug in the stack overflow was marked as a duplicate of this)

  3. gayanper commented on Jul 27, 2019

    @gayanper
    Contributor

    Andy Xu(devdiv) (@andxu) Didn't you though of contributing a fix for JDT on this ?

  4. removed this from the Backlog milestone on Jul 29, 2019
  5. testforstephen commented on Jul 29, 2019

    @testforstephen
    Contributor

    Gayan Perera (@gayanper) we're a small team, currently we have limited resource for this. Appreciate a lot if the community can contribute this feature in the upstream JDT.

  6. testforstephen commented on Jul 15, 2020

    @testforstephen
    Contributor

    The upstream has added the lambda support for evaluation, and already integrated to the latest VS Code Java Debugger. Will close the issue.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions