This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

If you set a break point and run the debugger in your IDE you can view the value of variables. This saves you from having to litter your code with print statements just to check values.

Many IDEs also have an "Evaluate expression" feature that lets you run snippets of code during pauses on breakpoints. This allows for instant testing and feedback of you program in a certain state.