+ 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?
5 Answers
+ 2
And Roberto Guisarre...got a new badge...đ
+ 1
A debugger in your IDE (eclipse, intellij ect) should do the job fine
+ 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.
0
Thank you TurtleShell
0
Thank you Roberto Guisarre