Steve-Shambles / Var_Catcher

load in a py file and this will create a function to trace its variables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Var_Catcher

Var catcher V1 By Steve Shambles April 2023

Requirements: None

Run var_catcher and load in a .py file, var_catcher will then create a function (as a text file) to print out your variables and their values in the shell at any time or place you need it in your code.

Just copy and paste the def into your program and call the function "show_vars()" from anywhwere and as many times as you want in your code for observation and debugging.

It's nothing code, but it can be a time saver, I find it useful anyway. I am aware some IDE'S do something similar but I like to use a very basic and simple IDE, so there.

Alt Text

To do: remove duplicate entries.

About

load in a py file and this will create a function to trace its variables

License:MIT License


Languages

Language:Python 100.0%