VISUAL STUDIO CODE · ОСНОВЫ · LESSON 08

Find the mistake.

Stopping points and debugging · about 13 minutes

Learning with progressRead the summary for free. To save the work, log in to the account.
STEP 1

Pause the line.

Click to the left of the code line and a red dot appears. This is the stopping point: the program will stop before this line.

Debugging path
PointcirclePauseF5VerificationVARIABLES

✦ You can see what is already stored in variables.

STEP 2

Start debugging.

Press F5 or open Run and Debug. When the program stops, look at VARIABLES. You can continue using F5.

✦ Debugging helps you understand the path of the program, rather than guessing the error.

TRY IT YOURSELF

Practice

Open your hello.py, set a stop point in front of print, start debugging and see which line the program stopped at.