debugging - How to debug lambda expression in Java 8 using Eclipse? -
i trying debug simple java application using lambda expression. not able debug lambda expression using normal eclipse debugger.
you can transform expressions statements.
list<string> list = new arraylist<>(); // expression boolean allmatch1 = list.stream().allmatch(s -> s.contains("hello")); // statement boolean allmatch2 = list.stream().allmatch(s -> { return s.contains("hello"); });
you can set break-point on return s.contains("hello");
line
Comments
Post a Comment