When making my tkinter app project, sometimes I need to quickly know the current values of the variables I made, for debugging purposes, so I make a line like this:
root.bind("< F1>", lambda e: print(f"var1: {var1} \n var2: {var2} \n [etc]"))
which basically prints out the values of the variables I specifically list in, when I press F1. The problem with this is that manually typing each variable is a pain when you have a lot, so surely there is a smarter and automatic way of doing this. I'm guessing maybe there is a dictionary like "globals()" excluding the built-ins (meaning only the variables made by the user)? If there isn't such a thing, can someone give me an alternative? Thanks