debug info inside lambda body

Anna Kozlova Anna.Kozlova at jetbrains.com
Mon Oct 7 07:21:01 PDT 2013


Hi guys,

 

we try to make the debugger work inside lambda body. As far as we can see
there is no local variable table generated for the method into which the
lambda was compiled. 

E.g. for a lambda 

       Runnable r = () -> {

            int i = 0;

        };

 

Generated bytecode is as following

 

// access flags 0x100A

  private static lambda$0()V

   L0

    LINENUMBER 1 L0

    ICONST_0

    ISTORE 0

   L1

    LINENUMBER 46 L1

    RETURN

    MAXSTACK = 1

    MAXLOCALS = 1

 

Because of that our debugger can't access local variable information through
JDI API. Was that intentional decision or will it be changed later?

 

Thank you
Anna Kozlova
JetBrains
 <http://www.intellij.com/> http://www.jetbrains.com
"Develop with pleasure!" 

 



More information about the lambda-dev mailing list