Use this open source tool to monitor variables in Python
opensource.com
external-link
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 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 https://opensource.com/article/21/4/monitor-debug-python

#technology #python #opensource #debugging #coding

News and discussions about the programming language Python


  • 0 users online
  • 2 users / day
  • 3 users / week
  • 4 users / month
  • 18 users / 6 months
  • 1.09K subscribers
  • 128 Posts
  • 73 Comments
  • Modlog