How to view a variable with PyCharm?

Is it possible to "observe" a variable using PyCharm? I want to see the values โ€‹โ€‹that the variable takes during the loop.

Or is there something like console.log() ? I know breakpoints (I don't want to break), print and pprint :). It would be great to click, for example, to open a list or an object.

+5
source share
1 answer

Use the Clock panel, this shows how to find it: Pycharm - How do I get to the Clock? panels?

screenshot

You can simply drag and drop variables from the Variables panel into it.

You can also watch expressions, for example. var + 1 .

Violation when changing a variable is currently impossible: Stop at the line where the variable is changing

+2
source

Source: https://habr.com/ru/post/1259971/


All Articles