We need VSC, Python extension and a launch.json with the minimum of integrated and external.
The launch.json Debug->Open configurations
Ok, let’s run a script and test it.
F5 is for run, F10 is for step into.
We are going to test Python set functions, union and intersection. The breakpoint will be at intersection variable.
At this point F5 was pressed and the debugging is started, we do not see what is in equal yet, press F10 for that.
Here we see the numbers from intersect after moving over the breakpoint.
To finish the debugging mode, press F5 for run og step into with F10.