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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -