Everything You Need to Know about Debugging in VSCode

  Рет қаралды 44,760

ArjanCodes

ArjanCodes

Күн бұрын

Пікірлер: 116
@ArjanCodes
@ArjanCodes 7 ай бұрын
👷 Join the FREE Code Diagnosis Workshop to help you review code more effectively using my 3-Factor Diagnosis Framework: www.arjancodes.com/diagnosis.
@cstephens16
@cstephens16 7 ай бұрын
A whole series on debugging would be awesome. Seriously.
@ZacMagee
@ZacMagee 5 ай бұрын
Amen
@ViniBevilacqua
@ViniBevilacqua Күн бұрын
i'd love to watch that!
@eduardolpz386
@eduardolpz386 7 ай бұрын
This is great. A debug FastAPI video would be great too. Thank you for all your work.
@leowalker07
@leowalker07 7 ай бұрын
adding a vote for debug FastAPI with vscode
@compote-s1r
@compote-s1r 7 ай бұрын
there is nothing different when debugging FastAPI or Django app, even Flutter app for that matter. But VSCode will help you create the debugging setup.
@ShanilPanara
@ShanilPanara 7 ай бұрын
I've coded with VSCode for years now but never known how to use the debugger! Looks really powerful and I guess it forces you to code a little more carefully as well Gonna try to incorporate it in my dev workflow soon and see what difference it makes! Thanks Arjan
@LiquidMasti
@LiquidMasti 7 ай бұрын
Same I have been using vscode for years but never used debugger only used print statement or took my code to .ipynb to solve
@dilliboy3366
@dilliboy3366 7 ай бұрын
This is one of the most beautiful videos I have ever watched on debugging.
@ArjanCodes
@ArjanCodes 7 ай бұрын
I'm glad it was helpful!
@arunbalakrishnan8978
@arunbalakrishnan8978 16 күн бұрын
I've watched many videos. This is the one I've been looking for. Just in depth.
@thefanboy3285
@thefanboy3285 7 ай бұрын
Learning with you makes my brain tingles. It's like ASMR but with knowledge instead of sensitive stimuli.
@ArjanCodes
@ArjanCodes 7 ай бұрын
That's a really original way to put it! I appreciate the compliment :)
@thefanboy3285
@thefanboy3285 7 ай бұрын
@@ArjanCodes you're welcome. And btw, how do I pronunce the "Arjan" ? Arian ? Arj' an ?
@marcelhulsberg501
@marcelhulsberg501 7 ай бұрын
great video! I also frequently use the tebugging terminal (Ctrl+Shift+Y), where you can calculate expressions (similar to the watch section), but can also create and manipulate variables etc. the debugger also works great with pytest
@mahamadinikiema9860
@mahamadinikiema9860 7 ай бұрын
Great work. A whole series of best practices for debugging with VSCode would be great. Thanks.
@Chaplainelmo2001
@Chaplainelmo2001 7 ай бұрын
Great ... enabled me to add several new tips to my own hard learned uses so far. VS Code formerly had a great "Preview" extension that visualized the call stack and allowed stepwise execution and display of function calls, returns, etc. I found that to also be a great assist in debugging as well.
@DagarCoH
@DagarCoH 7 ай бұрын
Did not know about the conditional break points. That is so useful!
@michael_baron
@michael_baron 7 ай бұрын
Same. For years I had no idea. :D
@ArjanCodes
@ArjanCodes 7 ай бұрын
Glad the video was helpful!
@Iamsuperb4
@Iamsuperb4 7 ай бұрын
I'll definitely be using those from now on! Better than adding a temporary if statement and putting a breakpoint inside it 😂
@chaseadal
@chaseadal 7 ай бұрын
Fastapi debugging! Yes please! Fastapi with docker would be great too.
@BolotZhusupekov
@BolotZhusupekov 7 ай бұрын
Yes, we need separate video about debugging a FastAPI application
@wexwexexort
@wexwexexort 7 ай бұрын
I would love to see a debugging video for FastAPI and another video similar to this one but for pycharm.
@apsomething
@apsomething 7 ай бұрын
Would be great to see more advanced video about debugging!
@kreglfromworld
@kreglfromworld 7 ай бұрын
One thing missing that I find myself using a lot is the debugger console. Any time I'm unsure of how exactly to do something I use a breakpoint, run my ideas at that point through the debugger console to see what works, and implement it in code.
@MeqdadDev
@MeqdadDev 7 ай бұрын
Thanks for the precise and high quality content. Keep coding dear Arjan.
@ArjanCodes
@ArjanCodes 7 ай бұрын
Thank you for the kind words!
@Doppelwulf
@Doppelwulf 7 ай бұрын
I had no idea there were options for breakpoints. The conditional breakpoint is a big win for me, thanks!
@ArjanCodes
@ArjanCodes 7 ай бұрын
Glad the video was helpful!
@CheesecakeJohnson-g7q
@CheesecakeJohnson-g7q 2 ай бұрын
Thank's. I'm new to programming outside of notepad.
@simeidoblinski
@simeidoblinski 7 ай бұрын
Thank you very much! A video expanding on debugging a FastAPI application would be great!
@Piipolinoo
@Piipolinoo 7 ай бұрын
Concise and straight to the point. That was an excellent video, thank you!
@ArjanCodes
@ArjanCodes 7 ай бұрын
Glad you enjoyed the content!
@robosergTV
@robosergTV 6 ай бұрын
yes, please do a video about debugging FastAPI!
@gerardovelazquez9294
@gerardovelazquez9294 7 ай бұрын
Debugging python code inside docker from vscode will be great!
@PouriyaJamshidi
@PouriyaJamshidi 7 ай бұрын
Great video This is a topic that is almost never taught
@ArjanCodes
@ArjanCodes 7 ай бұрын
Glad you liked it!
@ivanchan7769
@ivanchan7769 7 ай бұрын
A debug FastAPI video would be great. Thank you for all your work.
@CodeChronicals
@CodeChronicals 4 ай бұрын
This video is super helpful!! I'd like to request a detailed tutorial video or series for debugging fastapi!!!
@walid7189
@walid7189 2 ай бұрын
Using this is great, but I would love to see a video that explains how to debug async code, monitor threads, maybe processes etc. Thanks Arjan for your videos. When I will be rich I will join the paid channel !
@virtualraider
@virtualraider 7 ай бұрын
debugging a Flask application would also be incredibly useful. A problem with most KZbin debugging videos is that they show how to work on simple scripts, but debugging an app running on a framework is way more complicated 😅
@mitchedmunds
@mitchedmunds 6 ай бұрын
Great video! I think that it would have been useful to cover the debug console and also VS Code's testing pane where you can collect tests and then debug individual tests. It may have also been worth mentioning that you can Debug cells in the built-in Jupyter notebooks too - but these would be good topics for a follow up!
@diegol_116
@diegol_116 7 ай бұрын
Ok I thought I knew everything related to Debug in VSCode...but it turned out I didn't...
@eziola
@eziola 7 ай бұрын
Thanks for these basic videos. Extremely helpful
@ArjanCodes
@ArjanCodes 7 ай бұрын
Glad you like them!
@LunaLovegood-1981
@LunaLovegood-1981 7 ай бұрын
I hope you talk about more request type in launch.json (attach, launch, remote debugging,....) and some advance topic like debug threading, asyncio debug, .... What you sharing in the video is simple, or just for beginer.
@SiegfriedHirsch
@SiegfriedHirsch 7 ай бұрын
Nice help. FastAPI debugging would be great
@niweshsah5337
@niweshsah5337 6 ай бұрын
Make a whole series on debubbiging Please
@claberone
@claberone 7 ай бұрын
It would be really interesting to have a video on Fastapi and SQLModel as an ORM.
@SeekoZaHero
@SeekoZaHero 4 ай бұрын
Thanks for simple and informative explaining appreciated !
@ArjanCodes
@ArjanCodes 4 ай бұрын
Glad it was helpful!
@wizardfix
@wizardfix 7 ай бұрын
Thanks for this! But what I have never managed to get working is debugging code running in a container (using Docker/Podman etc.). A demonstration of the setup for this would be very much appreciated (assuming you can figure it out!).
@trilink4862
@trilink4862 3 ай бұрын
Great video. Could you do a basic vs code debugging session with pytest and pytest-bdd with scenarios please? I always run into a list index error with pytest-bdd when trying to debug a scenario that works in the terminal.
@JatinYadav-j9u
@JatinYadav-j9u 7 ай бұрын
I would love to see a debugging video for FastAPI
@multitaskprueba1
@multitaskprueba1 21 күн бұрын
Fantastic video! Thank you very much!
@ArjanCodes
@ArjanCodes 20 күн бұрын
Glad you liked it!
@justchary
@justchary 7 ай бұрын
Thank you. I learned something
@ArjanCodes
@ArjanCodes 7 ай бұрын
Glad it was helpful!
@abdelghafourfid8216
@abdelghafourfid8216 7 ай бұрын
debuging FastApi or streamlit applications would be interesting
@Geo-Artist
@Geo-Artist 7 ай бұрын
Yes, debugging fastapi and other framework will be super cool, please do it ;)
@joshbleijenberg4000
@joshbleijenberg4000 5 ай бұрын
Nice video, can you create a video on how to debug Django Rest Framework?
@rangabharath4253
@rangabharath4253 7 ай бұрын
Awesome as always and very useful. Thanks 🙂
@ArjanCodes
@ArjanCodes 7 ай бұрын
Glad you liked it!
@AlanBerman
@AlanBerman 7 ай бұрын
Please do a series on debugging
@LMGaming0
@LMGaming0 6 ай бұрын
Why using debugging for module instead of normal file? is there really a big advantages? and can we have a video with 3-4 different debuggers and when/why to use?
@lestylo8428
@lestylo8428 2 ай бұрын
Thanks for the content!
@Brunojavaa
@Brunojavaa 7 ай бұрын
Very good, how to debug in vscode when i run in docker?
@Blackrobe
@Blackrobe 7 ай бұрын
I worked closely with Spark scripts, so I'm kinda sad that VSCode features like breakpoints and such can't really be used for example checking dataframes...
@sutrejito
@sutrejito 5 ай бұрын
Thanks man that was very clear. I wondered if there is a feature like in the IDE I've been using (Spyder) where you can tinker with the variable once you've hit the breakpoint and the program is on pause. I've been finding this very useful when I'm not really sure about the correct function to use to process dataframes...
@fabrelambeau5858
@fabrelambeau5858 7 ай бұрын
An idea for another video would be how to perform refactoring with VSCode. I used to use IntelliJ, and it seemed to offer quite a bit more. Maybe I haven’t yet found the right way in VSCode…
@GuglielmoCerri
@GuglielmoCerri 7 ай бұрын
Would be very useful a whole series on Django
@erikvanraalte4557
@erikvanraalte4557 7 ай бұрын
How did you get the Python Debug Console in the editor pane? I love to open terminals in the editor area, but I haven't managed this for the Debug Console.
@AntonsWorkshop
@AntonsWorkshop 6 ай бұрын
Can you include a video about debugging modules?
@CharleswoodSpudzyofficial
@CharleswoodSpudzyofficial 7 ай бұрын
I love you Arjan!
@JoB-k8q
@JoB-k8q 2 ай бұрын
@ArjanCodes A video on how to set up for debugging AMD modules using node would be amazing. I cannot get it to work. I think node uses commonJS and does not understand AMD modules so I get a ReferenceError: define is not defined when I try to use the debugger
@mohamedsalman4013
@mohamedsalman4013 7 ай бұрын
Hey, It would be very helpful, If you make a video for Pycharm (FastAPI project)
@fabrelambeau5858
@fabrelambeau5858 7 ай бұрын
I found this one to be a little basic… is that all there is to debugging in VSCode? I’d be interested in knowing more advanced techniques.
@anibalismaelfermandois6943
@anibalismaelfermandois6943 7 ай бұрын
We want the fast API one!!!
@anibalismaelfermandois6943
@anibalismaelfermandois6943 7 ай бұрын
I work with fast API along side docker compose. Any recommendations for debbuging and testing? I'm a bit overwhelmed with the amount of options.
@franco-gil
@franco-gil 7 ай бұрын
More debug! On VSCode 👋
@danielschmider5069
@danielschmider5069 7 ай бұрын
Please make a video about debugging inside a docker container, it's seriously hard to find a good tutorial on it
@dev.s.shubham
@dev.s.shubham 6 ай бұрын
Yes I'd like to watch FastAPI Debugging
@_baco
@_baco 7 ай бұрын
Debugging videos for FastAPI and Django, please!!!
@kaelinellis1646
@kaelinellis1646 7 ай бұрын
How can I debug a file that I have to run from the command line? If it has imports from another folder, so I need to start it above the file directory.
@CalmlyExplained
@CalmlyExplained 7 ай бұрын
You can run debugger in module mode. You define your settings via json file.
@ShanmughamM-cr7se
@ShanmughamM-cr7se 12 күн бұрын
After installing launch.json file error ( i already created launch.json file), how to resolve it
@PaulaBean
@PaulaBean 7 ай бұрын
I'd like to use VSCode to attach to (and debug) running web services, written in python, which run in a container (docker or kubernetes) in the cloud somewhere (azure, aws), but it is unclear to me how to go about that.
@Soul_land_Ej
@Soul_land_Ej Ай бұрын
how you add ✨ in your code? doesn't in cause trouble in debugging? pleaaaase answer. i search a lot but i couldn't find any extension.🙏🥺
@losco_arti
@losco_arti 7 ай бұрын
I'm letting you know, I'd like to watch your video about FastAPI debuging
@williamalarcon7994
@williamalarcon7994 7 ай бұрын
Hi, great video, could you make one showing how to debug apps made with poetry?
@GOTHICforLIFE1
@GOTHICforLIFE1 7 ай бұрын
i agree - i have major issues pointing to the python interpreter since its not in the same dir as the code base
@mitchedmunds
@mitchedmunds 6 ай бұрын
Should be fairly simple as long as you've set the Python interpreter to the one in the virtual environment that poetry has created. There is a setting in VS code called "Venv Folders" which you can set to wherever poetry is creating your virtual environments. Or you can change the poetry setting "virtualenvs.in-project=true" which will create a .venv in your project folder and VS Code will find it more easily when trying to select an interpreter.
@legion_prex3650
@legion_prex3650 6 ай бұрын
hmmm, what is this star icon in line 8? right before return average_score? Is this some fancy icon for a breakpoint?
@mitchedmunds
@mitchedmunds 6 ай бұрын
I have a feeling it's something to do with Copilot, like a suggestion feature or something. I don't think it's relevant to the topic so I wouldn't worry for now.
@litttlemooncream5049
@litttlemooncream5049 5 ай бұрын
helpful! thanks
@ArjanCodes
@ArjanCodes 5 ай бұрын
You're welcome!
@rythmrana1987
@rythmrana1987 2 ай бұрын
what does the this and _this mean in variables. how are they different
@jancicruz7
@jancicruz7 7 ай бұрын
Should have showed what the launch.json file does. It's a requirement in many professional environments to debug with that prepared.
@lucianogarbarino5240
@lucianogarbarino5240 7 ай бұрын
Please I would love to know how to debug a FastAPI app.
@trupalcanada
@trupalcanada 7 ай бұрын
til about conditional breakpoint it should be quite useful
@bbrendon
@bbrendon 4 ай бұрын
nothing happens when I click on "Run and Debug"
@bbrendon
@bbrendon 4 ай бұрын
Uhh. You didn't even get step one right. The extension you need is "Python Debugger". Without that, it wont work! How trust worthy is a video when step 1 is wrong?
@quillaja
@quillaja 7 ай бұрын
There's a bug in your data. No way Austen is rated lower than Orwell.
@usmanrahat2913
@usmanrahat2913 3 ай бұрын
VSC does not have inline method refactoring. For some of advanced refactoring and debugging. PyCharm is much better.
@stevendecoeyer1987
@stevendecoeyer1987 7 ай бұрын
Every time I wonder so I just have to ask: what color iMac is that? 😂
@danleedev
@danleedev 7 ай бұрын
Flask, please.
@AyahuascaDataScientist
@AyahuascaDataScientist 7 ай бұрын
It took all these years for him to make this video??? It should’ve been a day 1 topic.
@brettvitaz9101
@brettvitaz9101 7 ай бұрын
“Everything you need to know” “These are the very basics” 😅
@sprintwithcarlos
@sprintwithcarlos 7 ай бұрын
f5
@younesveisi
@younesveisi 7 ай бұрын
Hi Arjan. Please Create a Video for debugging in Flask App. It's very important for me and my work as a Back-end developer with Flask. Thank you very much for all of you Videos.
@greob
@greob 6 ай бұрын
I’m still looking for an alternative to VSCode with a decent debugger… can’t figure out how to debug efficiently in vim or emacs. UwU
COMPLETE No-Nonsense VSCode Setup for Python Devs
26:05
ArjanCodes
Рет қаралды 32 М.
Avoid These BAD Practices in Python OOP
24:42
ArjanCodes
Рет қаралды 74 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,5 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 9 МЛН
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 2,1 МЛН
.NET and C# are in trouble. Here is what I'd do.
10:57
Ed Andersen
Рет қаралды 106 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
VSCode Features Python Devs NEED To Know
9:54
Tech With Tim
Рет қаралды 46 М.
Are you debugging JavaScript in VSCode? | YOU SHOULD!
7:06
Alex Ziskind
Рет қаралды 168 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
Programming Is Cooked
9:30
ThePrimeTime
Рет қаралды 278 М.
Debugging 101: Replace print() with icecream ic()
12:36
NeuralNine
Рет қаралды 370 М.
SQLModel + FastAPI: Say Goodbye to Repetitive Database Code
19:50
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
Debugging in Visual Studio Code: Ultimate Guide for Developers
10:56
Monsterlessons Academy
Рет қаралды 3,1 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,5 МЛН