IntelliJ IDEA has actually been supported for Java 8 Stream
debugging, which has not been used much before. Today IntelliJ IDEA demonstrates how to debug the Stream
chain calls in Java 8.
Stream code:
String[] words = new String[]{"Hello", "World"};
List<String> collect1 = Arrays.stream(words)
.map(e -> e.split(""))
.flatMap(Arrays::stream)
.distinct()
.collect(Collectors.toList());
set a breakpoint on the first line, then enter debug mode. When the breakpoint enters, click Trace Current Stream Chain
button:
then it will automatically enter the current Stream
tracking debugging window, which will show the tabs of each chained call. Click each TAB to see the tracking results of each step.
can also click Flat Mode
to enter Flat Mode and display all tracking results at once:
OK, very convenient!
Read More:
- IntelliJ idea error: Java: compilation failed: solution to internal java compiler error
- IntelliJ idea error: error: Java does not support release 5
- IntelliJ idea / eclipse automatically generate author annotation signature
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea
- How can IntelliJ idea completely delete a project
- [error] error handling of IntelliJ idea
- IntelliJ idea automatically generates serialVersionUID
- The process of solving Intellij IDEA can’t load jvm DLL error at a time
- IntelliJ idea community community integrated Tomcat or jetty tutorial
- Upgrade to IntelliJ idea 2021.2 and start the project with an error
- Git uploads local IntelliJ idea project to GitHub
- MacOS: How to Fix Intellij-IDEA main menu disappears Bug
- Split screen display method in IntelliJ idea
- IDEA报Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA
- IntelliJ idea sets the default working directory
- [solved] error: module not specified (IntelliJ idea)
- Perfect solution for IntelliJ idea error “CreateProcess error = 2, system cannot find the specified file”
- IntelliJ idea code did not report an error, compilation failed
- The solution of notes floating red error in IntelliJ idea