Skip to content

Private non-static method can not debug and get "this" field #111

@924060929

Description

@924060929

the code is

class MyTest {
  private int value = 10;
  private void test() {
    System.out.println(value);
  }
}

When I generate the code by Janino and copy the code to a file MyTest.java,and step into the test function,I can't look the variable this and value in Intellij IDEA.

Then I debug the Janino 3.0.0,and find the logical in UnitCompiler#compile(FunctionDeclarator, ClassFile) is change the private non-static method to package static method, and add the "this" to the method's first argument.

"This" in IDEA is this object, but in Janino is the first augument, this cause the problem.

Can U support this debug function :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions