From this post, I will discuss how to debug java 8 streams.
I'm using IntelliJ Idea common version to do this ok let's discuss the process.
I wrote a simple java program to visualize this below I attached my classes.
as a first step, you need to check whether the Java stream debugger plugin installed to your IDE with newly intelliJ idea versions this plugin is also bundled with the setup so you do not need to install it again to check if it exists go to file -> setting in your IDE after click plugins and search java stream debugger then you do not install it click the install button.
I created a new java project and wrote below classes of that.
here is my project structure
you can get code from my GitHub link , https://github.com/manoj1995madushanka/streamDebugger
here is my main class
after debugging point hits we can see the main function as below
I marked the place with number 1 this is our java stream debugger if you successfully installed the plugin you can see that icon when you debug code,
then click that icon and you can clearly see what happens in the stream code block java stream debugger plugin is clearly visualize all operations that happen inside of the stream.








0 Comments