RUVIDEO
Поделитесь видео 🙏

How to Debug and Watch Code Execution in Visual Studio Code - 60 Seconds to Code

shorturl.at/fCFGQ
Welcome to 60 seconds to code where I show you how to code in 60 seconds or less.
Today you will learn debugging and watching code execution using breakpoints
The file you need to follow along in this video is linked in the description.
Step 1- Open the file in visual studio code and set breakpoints at line 7,8 and 9 by clicking in the small margin to the left of the line numbers.
Step 2 – Click the run menu on the left navigation and click run and debug. Select the python file option.
Step 3 – The debugger will stop at the first breakpoint. Breakpoints allow you to pause code execution and inspect what is happening with your code at that particular point. Click the continue button in the debugging bar to proceed to the next breakpoint.
Step 4 – At the next breakpoint, click the step over button. Step over allows you to execute the entire line without having to know the details of the execution in that line.
Step 5 – At the next breakpoint, click the step into button. Step into allows you to step into the execution of a function call. Use the step over and step into buttons to watch the code executing.
Step 6 – While you are watching a function execute, you can also watch the variable local to that function in the local window. As variables come in and out of scope, you will see them in locals window.
Step 7 – You can also see what function is calling what function in the call stack window. The call stack windows tells us that the main module is calling the find max function and we are currently executing the find max function. At any time, you can click stop to stop the debugger or reset to start the debugger from the start.
The code is available in a link in the description.
Congratulations, you’ve learned about debugging and watching code execution in visual studio code. For your homework, try using the debug console to change the value of a local variable while you are watching code execution and try to code a little every day because code is life.
Watching code execution and #debugging in #python #100DaysOfCode #301DaysofCode #60secondstocode
shorturl.at/fCFGQ

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to Debug and Watch Code Execution in Visual Studio Code - 60 Seconds to Code», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.