I would like to set the value of some objects in PyCharm before running my code and debugging. It would save me a lot of time, because I would not have to enter by myself the values of those objects.
For example, I would like to define foo = 1 and bar = 2 for the following code. (In reality, it is for more complex code with more objects.)
foo = input("value of foo ?")
foo = int(foo)
bar = input("value of bar ?")
bar = int(bar)
total = foo + bar
Is there a way to do that in PyCharm without modifying the code ? I do not want to do foo = 1 and bar = 2 because I would have to modify the code.
I looked online and tried to use the "Parameters" and "Environment variables" of the Run/Debug Configurations but could not succeed.
Thank you for your help.
