We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
here is the code, and can not debug in lamda statement
package org.javaparser.examples.chapter2; import com.github.javaparser.StaticJavaParser; import com.github.javaparser.ast.CompilationUnit; import java.io.File; import java.util.List; import java.util.stream.Collectors; public class CommentReporterComplete { private static final String FILE_PATH = "src/main/java/org/javaparser/samples/ReversePolishNotation.java"; public static void main(String[] args) throws Exception { CompilationUnit cu = StaticJavaParser.parse(new File(FILE_PATH)); List<CommentReportEntry> comments = cu.getAllContainedComments() .stream() .map(p -> new CommentReportEntry(p.getClass().getSimpleName(), p.getContent(), // this statement can not be debug in vscode. p.getRange().map(r -> r.begin.line).orElse(-1), !p.getCommentedNode().isPresent())) .collect(Collectors.toList()); comments.forEach(System.out::println); } private static class CommentReportEntry { private String type; private String text; private int lineNumber; private boolean isOrphan; CommentReportEntry(String type, String text, int lineNumber, boolean isOrphan) { this.type = type; this.text = text; this.lineNumber = lineNumber; this.isOrphan = isOrphan; } @Override public String toString() { return lineNumber + "|" + type + "|" + isOrphan + "|" + text.replaceAll("\\n","").trim(); } } }
The text was updated successfully, but these errors were encountered:
Debugging in lambda has been supported in microsoft/vscode-java-debug#1160. If you have any further questions, feel free to reopen this.
Sorry, something went wrong.
No branches or pull requests
here is the code, and can not debug in lamda statement
The text was updated successfully, but these errors were encountered: