Answer the question
In order to leave comments, you need to log in
How to stop when debugging a variable in pycharm?
Hello.
I know that it is possible to make a condition for a breakpoint under which the breakpoint will work. But I want that anywhere in the code, as soon as the variable changes to the value I need, execution will pause at that place. So that I can understand where the variable takes this value.
Is this possible to do? If so, how?
Answer the question
In order to leave comments, you need to log in
There is no such possibility, but there are two options for how this can be implemented:
1. If this is a field, then replace it with a property, and put a breakpoint in the setter
2. Put breakpoints everywhere (wherever the variable changes) with the necessary condition.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question