153k views
2 votes
Why is code tracing important when debugging?

1 Answer

6 votes

It helps reveal the flow of execution of your program, including results of in-between evaluations. In other words, you can see what your program is doing, and why it takes the decisions it is taking.

If something unexpected happens, the trace will show you the sequence of events that lead to it.

User Bjelli
by
4.6k points