(Jan-15-2023, 06:31 PM)deanhystad Wrote: The best way to demonstrate the wrong behavior is to produce an example that allows others to reproduce what you are seeing. So far the only way I can reproduce what is shown in your screenshot is to edit the code condition (change from True to False) after stepping to the print statement.Exactly, I run the debugger as you mentioned. I will check the debug configuration and maybe there is something wrong there. I will post if I have fixed it. BTW what are the most important configuration in VS Code for the python debugger?
If you cannot reproduce the behavior in a small example program, it usually means the problem is not what you think it is. I see this is line 92. Maybe there is something odd going on in lines 1-90. I cannot imagine what that might be, but there is nothing wrong with the two lines you posted.
How are you running the debugger? Just using the Run menu -> Start Debugging? What is your debugging configuration?
EDIT:
As I can observe the problem is related to VS Code, because when I execute the code in the terminal (Ubuntu 20.04.LTS), the code runs properly. I will check further the settings and come back later.