How to use breakpoints in Vscode for debugging

preview_player
Показать описание
In this video, I run through the fundamentals of debugging within the Visual Studio Code IDE, using examples in Python. Vscode has very comprehensive debugging capabilities, and breakpoints are a very fundamental part of this!

First we debug a simple "hello world" script, followed by a simple FastAPI application, exploring how to pause and examine the objects and methods being executed from inside the IDE.
Рекомендации по теме
Комментарии
Автор

Thank you Saitama for your immense help

sanjoybhattacharjee
Автор

Thanks for this intro to breakpoints in VSCode! Very useful

leandropolus
Автор

just started as a junior software dev n this is gna save me thank u sm <3

angelbeatswolf
Автор

Thank you so much!!! It was immensely helpful!!!!

akshitdas
Автор

clear instruction you know what you are doing
i hope to see move videos

SiilverEdit
Автор

Okay Video, It would had been great if you could dealt the basic . I went through the video but couldn't get the essence fully. Hopefully you would keep this in mind while creating next video. thanks a lot for taking time and creating this tutorial. All the best.

datarobe
Автор

Why the python extension not give me the python file

adxmreal
Автор

1:42 whats the name of the extension that shows that grey
Needet words for you ???? I need that please tell me

skulduggery-
Автор

Hey John could you please help me with this. I did run in 2 parts of code and i would only need to run the second part of the code how can i do so? I would like to try to run the computer guess part only.

import random

def guess(x):
random_number = random.randint(1, x)
guess = 0
while guess != random_number:
guess = int(input(f"guess a number between 1 and {x}: "))
if guess < random_number:
print("Sorry, guess again. Too low")
elif guess > random_number:
print("Sorry, guess again. Too high.")
print(f"Congrats. You have guessed the number {random_number}")

def computer_guess(x):
low = 1
high = x
feedback = ""
while feedback != "c":
if low != high:
guess = random.randint(low, high)
else:
guess = low # could also be high bc low = high
feedback = input(f"is {guess} too high (H), too low (L), or correct (C)").lower()
if feedback == "h":
high = guess - 1
elif feedback =="l":
low = guess + 1

print("You did it, you robot, {guess}, correctly")


guess(10)

NorlingFishing
Автор

Johnny sins, what are you doing here?

palit_babu