Watchpoints is a simple but powerful tool to help you with monitoring variables while debugging Python

When debugging code, you're often faced with figuring out when a variable changes. Without any advanced tools, you have the option of using print statements to announce the variables when you expect them to change. However, this is a very ineffective way because the variables could change in many places, and constantly printing them to a terminal is noisy, while printing them to a log file becomes unwieldy.

When I was still programming I remember variable watching was essential for debugging as you are often trimming strings, changing data types, and doing other manipulations that make it difficult to find out what actually went wrong where.

I'm just wondering if IDEs for Python don't already do this in a pane whilst testing?

See Use this open source tool to monitor variables in Python

#technology #python #opensource #debugging #coding

Image/photo

When debugging code, you're often faced with figuring out when a variable changes. Without any advanced tools, you have the option of using print statements to announce the variables when you expect them to change. However, this is a very ineffective way because the variables could change in many places, and constantly printing them to a terminal is noisy, while printing them to a log file becomes unwieldy.



source https://gadgeteer.co.za/watchpoints-simple-powerful-tool-help-you-monitoring-variables-while-debugging-python

Comments