+ 1

Is there any tool to view the program execution flow in java?

As we write a program, sometimes it would be difficult to understand the sequence of flow. For example the execution of a loop, etc etc..is there any tool or anything we can use in order to understand the flow or the order of execution in a simple way?

3rd May 2018, 5:10 PM
Joel
Joel - avatar
5 Réponses
+ 2
And Roberto Guisarre...got a new badge...👍
3rd May 2018, 5:39 PM
Joel
Joel - avatar
+ 1
A debugger in your IDE (eclipse, intellij ect) should do the job fine
3rd May 2018, 5:20 PM
TurtleShell
TurtleShell - avatar
+ 1
That's debugging, and if you are not using an IDE to help you, then the good all fashion "print placing" as I call it should help. What you do is placing prints right after a variable initialization to see if it's getting the value, or inside conditions to see if the execution flow is going where you want it to go, or inside loops to see what's going on with the indexes etc etc. If you are using an IDE, like Netbeans for example, you have access to "breakpoints", which can be placed in any line of your code, and can be more than one, so that the execution flow stops where the breakpoint is, and the IDE should show all the info you would need, like variable values, condition or loop triggered, etc. Good luck in your debugging Joel.
3rd May 2018, 5:21 PM
Roberto Guisarre
Roberto Guisarre - avatar
0
Thank you TurtleShell
3rd May 2018, 5:29 PM
Joel
Joel - avatar
0
Thank you Roberto Guisarre
3rd May 2018, 5:30 PM
Joel
Joel - avatar