how to step into each statement in a line of code with multiple statements?

hello, thanks, using PyCharm 2023.3.3 (Professional Edition) Build #PY-233.13763.11, built on January 25, 2024

how can i step into each statement, one at a time?
 

if i choose `step into` or `step into my code` or `smart step into my code`, 
then pycharm will also run all three statements at the same time.

so how can i step into each statement, one by one?

 

1
4 comments

Sorry no can do.  My experience has been that this is considered a single statement;  If you own the code place it on 3 lines

1

Humberto , thanks for the answer.
please to ask another related question.

i tried to reformat my .py file, to split those multiple statements into multiple lines.
but when i select ‘code/reformat file’, pycharm does not split them.

for example, if the code line has an `if`, pycharm will not split the code.

if True == True:   print(1);        print(2)

and i  want this

if True == True:
    print(1)
    print(2)
 

0

Got the solution but was not satisfied.

0

Yes, i agreed, it is not that much clear.

0

Please sign in to leave a comment.