Тёмный

Pycharm Tutorial #2 - Debugging 

Tech With Tim
Подписаться 1,6 млн
Просмотров 381 тыс.
50% 1

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 122   
@TechWithTim
@TechWithTim 5 лет назад
Go follow my twitter for exclusive updates and leaked content! twitter.com/TechWithTimm
@user-xx6wh5nm4s
@user-xx6wh5nm4s 2 года назад
Hi there! Thanks for the video! I have about 5 sec Closed Captions lag... what can I do to get rid of that lag? Or it should be done only by author?
@normanlove222
@normanlove222 5 лет назад
dude, im new to Pycharm and Python. Your video taught me what I came to learn. Helped me find a silly bug real quick. I thank you sir.
@konstantinburlachenko2843
@konstantinburlachenko2843 3 года назад
Thanks for the video. There are several commands available in Python for Introspection: dir() will give you the list of in-scope variables globals() will give you a dictionary of global variables locals() will give you a dictionary of local variables
@tempor8336
@tempor8336 4 года назад
Thank you dude ! I am an Intermidiate-Advanced Python programmer and I've been using Pycharm nearly since my beginings in Python (a year ago) WITHOUT ever knowing about the debug tool ! Now I understand WHY you don't recommand IDEs for beginners ! Thank you so much.
@qasimzaheer1140
@qasimzaheer1140 4 года назад
What would you recommend for beginners then?
@tempor8336
@tempor8336 4 года назад
@@qasimzaheer1140 Probably the standard python environment which you can download directly on the official website or maybe even SublimeText3 which is better but a bit painful to put on your computer. Good luck with your code mate !
@matteo81996
@matteo81996 5 лет назад
I think the best way to explain "Step Over" is that it doesn't step into ANY function calls on the current line, regardless of whether they are in your code or not. Great video otherwise!
@ChaosArtist
@ChaosArtist 3 года назад
Very helpful. I've been using PyCharm for a while but I hadn't taken the time to look at the debug tool.
@yolly88
@yolly88 3 года назад
Thank you for explaining this stuff. I am new to this and currently in college for computer science and you are helping me tons. Can just one favor is to highlight your mouse points because the background is dark
@melellington1333
@melellington1333 3 года назад
Some screen recorders highlight mouse clicks, which is especially useful when the text displayed is so small. The text in this video is too small to read comfortably. Some of Tim's other videos have better text sizes and less need for highlighting of mouse clicks.
@FRAN-vd9rl
@FRAN-vd9rl 3 года назад
excellent tutorial, such useful topics (debugging) you mentioned. i had no idea that pycharm was so powerful at debugging.
@hyaenas7850
@hyaenas7850 4 года назад
You are an amazing teacher. Thanks
@Eri3t5co
@Eri3t5co 4 года назад
Thank you very much for such a nice explanation. It was very useful for me.
@nbvw3
@nbvw3 Год назад
Thanks, this was helpful!
@bloodseeker1272
@bloodseeker1272 5 лет назад
Nice Video. Extremely Helpful.
@peterwoo2718
@peterwoo2718 Год назад
very helpful. thank you!
@rossmoore1155
@rossmoore1155 4 года назад
Excellent video
@rohanbangash5827
@rohanbangash5827 2 года назад
THANK YOU
@johnsoler1920
@johnsoler1920 2 года назад
There's this problem in my Pycharm where when I debug, it says "Variable are not available" even when I already have a breakpoint set on it. The weirdest part is that I am able to debug some functions, but for others, it just says that the variables are not available. I also don't know what difference decides whether the variables can be "available" or not. Can you please help me with this?
@THEbonjour0321
@THEbonjour0321 5 лет назад
Good Content, thx a lot!
@AK-ie9xb
@AK-ie9xb 4 года назад
Sir please make video on arcade library set-up in pycharm
@JakubMazur-v5s
@JakubMazur-v5s Год назад
Code below ;) import random def generateRandom(upper): r = random.randint(1, upper) return r def main(): run = True num1 = generateRandom(10) num2 = generateRandom(10) result = num1 * num2 while run: ans = input("What is " + str(num1) + " x " + str(num2) + "? ") if ans.isdigit(): if int(ans) == result: print('Correct') run = False else: print('Incorrect solution') else: print("Input must be a numer") if __name__ == '__main__': main()
@BronsonM6049
@BronsonM6049 4 года назад
hey, love your videos! using PyCharm with python 3.8, not getting the comments appearing IN the code, next to the variables when the breakpoint is reached. Please help?
@amitgajurel9209
@amitgajurel9209 4 года назад
Same issue with me
@henon943
@henon943 8 месяцев назад
if i try to run the function at min 2 it just finishes the process without any input/ result :(
@samozturk8276
@samozturk8276 3 года назад
Are there any 3rd part of this Pycharm tutorial?
@admundsothland8133
@admundsothland8133 3 года назад
Tim, I simply cannot download pandas for Python 3.9. It gives environment error in my terminal. If you know the cause please let me know. Thanks. Awesome video, by the way.
@bobbyq7037
@bobbyq7037 4 года назад
hi Tim, stumbled across this video on the debugger and hoping to get some help. two days ago my python debugging tools would stop working when i call input() functions during debugging process (VSC & Pycharm) . when i key in an entry for input() , my code keeps running non stop with no output registered. however, when i run my code directly in terminal it is working fine. Using python 3.8 . please help!
@nibinmatteo6884
@nibinmatteo6884 3 года назад
newbie here but wat does the 'upper' parameter in line 11 in 0:07 do
@joshuasusanto6626
@joshuasusanto6626 4 года назад
9:14 you ok there bud?
@Manish-nx5pz
@Manish-nx5pz 4 года назад
cool
@nourarifi2642
@nourarifi2642 4 года назад
I'm working in something using pycharm but when I run my script : Process finished with exit code 0 appears . I understand that it doesn't have any error in it but how can I see the result ?? (I did all the print things ) it's urgent plzzzzzzzzzzzz
@shehreyarzahoor370
@shehreyarzahoor370 4 года назад
go to configuration settings and check hat is missing there
@bennymario5876
@bennymario5876 3 года назад
5:52
@43SunSon
@43SunSon 2 года назад
pika pika
@suharsh96
@suharsh96 4 года назад
stop calling anus so much. good vid tho
@winszy
@winszy 4 года назад
The voice is cringy😭
@seytanc4
@seytanc4 4 года назад
Thanks for this video! One comment: before making a video please increase the font sizes so it would be readable in smaller screens: File>>Setting>>Font
@jacktembo
@jacktembo 2 года назад
It's actually File>>Settings>Editor>>Font
@brianwheeler5834
@brianwheeler5834 5 лет назад
The call stack and step in & out functions are closely related. When you call a function, it creates a frame on the call stack for tracking the state of that function. The frames are crumbs and the call stack is a bread crumb trail of the current execution of your program. When you step into a function while debugging, you'll see a new frame added to the top of the call stack; likewise, when you step out of a function, you'll see a frame popped off the stack. You can set a break point in a function that is deep in a series of function calls and see exactly how you got there by looking at the call stack. You can click on each frame to examine the state of that frame's function. Line #'s and highlighting make the code path easier to follow. Step over- you just stay in the current frame (at least until you hit the end of the function, then it acts like step out) Step in - you debug in the next function's frame if there is a function on that line (pushes a frame on the call stack) [If there is no function call on the current line then it acts like step over] Step out - you execute all the code in the current function's frame and return, putting you back in the caller function's frame (pops a frame off the call stack) Nice tutorial. Time to start using PyCharm!
@brimmed
@brimmed 4 года назад
wow i should've watched this before i started my project. makes me feel silly putting in all these print statements printing request responses lol
@maurosgarage
@maurosgarage 5 лет назад
thanks for taking your time on creating this videos! I done some C++ coding but not much phyton. Phyton is much more simple.
@НикитаЦеханович
@НикитаЦеханович 2 года назад
Thanks for that! But is there a way to debug the code by blocks like Jupyter Notebook? It would be great if Debugger allowed to go to previous step, and change something. Otherwise, one have to run the whole code again.
@kuntrasha
@kuntrasha 9 месяцев назад
So epic. Your videos are very easy to understand and to the point
@Momo-bb2fn
@Momo-bb2fn 4 года назад
Here is his starting code: import random def generate_random(upper): """ :param upper: >= 0 :return: int """ r = random.randint(1, upper) return r def main(): run = True num1 = generate_random(10) num2 = generate_random(10) result = num1 * num2 while run: ans = input('What is ' + str(num1) + ' x ' + str(num2) + '? ') if ans.isdigit(): if int(ans) == result: print('Correct') run = False else: print('Incorrect! Try again!') else: print("Answer must be a positive number, try again.") # global vars times = 10 for x in range(times): main()
@Momo-bb2fn
@Momo-bb2fn 3 года назад
hahahahaha i dead don't have a single like but it helped myself out 3 months later at a time where i still have NO CLUE how to debug lol
@s.baskaravishnu22
@s.baskaravishnu22 5 лет назад
your videos are excellent. Your videos are very much useful to me, Many thanks for that. My warm regards to you.
@kpaladiya
@kpaladiya 3 года назад
number = 20 chances = 9 while (chances
@НиколайЗейналов
Hi! Thx for your work - one of the most interesting and greatly done tutorials. Please can you continue tell us about Pycharm? It would be great!
@deepaksingh9318
@deepaksingh9318 4 года назад
Hey loved the way you explained it.. Also as you said its gonna make my life a lot easier .. So thanks.. Also would love to see an entire series on Pycharm.. and a Like and Subscribed for this video ;) ..
@migueldomingos4570
@migueldomingos4570 5 лет назад
Could you continue this series or there is nothing more to learn about pycharm?
@lulinguo6585
@lulinguo6585 4 года назад
If would be good if not scrolling up and down when not necessary
@migueldomingos4570
@migueldomingos4570 4 года назад
Very usefull! Finally I understood pycharm debugger!!!
@kuntrasha
@kuntrasha 9 месяцев назад
Have this issue of the step into my code thing not being available. It's such a great tool but when I run debugger the code just executes and completes and the step in options are greyed out. If anyone has a fix please let me know
@moisesacero4995
@moisesacero4995 3 года назад
# Starting Code: import random def generate_random(upper): """ :param upper: >= 0 :return: int """ r = random.randint(1, upper) return r def main(): run = True num1 = generate_random(10) num2 = generate_random(10) result = num1 * num2 while run: ans = input('What is ' + str(num1) + ' x ' + str(num2) + '? ') if ans.isdigit(): if int(ans) == result: print('Correct') run = False else: print('Incorrect! Try again!') else: print("Answer must be a positive number, try again.") # global vars times = 10 for x in range(times): main()
@malharjajoo7393
@malharjajoo7393 4 года назад
This guy makes it sounds like debuggers were just invented yesterday. or maybe he is just using a debugger for the first time in his life.
@chaosolid
@chaosolid 4 года назад
Great work, I have got to say, your work is in upper standard in this kind of videos...
@drygordspellweaver8761
@drygordspellweaver8761 2 года назад
Haha why didn't you use the debugger in your 12 hour coding livestream when you kept opening a socket?
@S1Iiz
@S1Iiz 2 года назад
Yeah, but next time you need to zoom in or zoom out the screen while you are explaining or teaching someone, because it's too small while watching your video.
@UracromToromag
@UracromToromag Год назад
Since you didn't leave the source code here there's no way to run in parallel and learn better (hands on). The explanations are good though.
@melellington1333
@melellington1333 3 года назад
Although I've used this kind of debugger since way back in the early 1980s with BASIC. However, not all programming languages have good debuggers (and some are overly complicated), if they have a debugger at all. Consequently, most of the time I simply either print debug statements to a console or send debugging text to custom text field.
@Shubham-fk4is
@Shubham-fk4is 5 лет назад
font size is very small
@hieudoan7711
@hieudoan7711 4 года назад
F7: Step into function F8: Step over regardless of function or not F9: Resume to next break point or end of program
@idlevandal69
@idlevandal69 5 лет назад
So if there's one MASSIVE difference between PyCharm and Vs Code this is it. This is an awesome debugger that will become more important as your programs become more complex and your programming skills become more advanced.
@migueldomingos4570
@migueldomingos4570 4 года назад
Does VS Code have a debugger at all?Is there any advantage of using it instead of pycharm?
@georgeyang3228
@georgeyang3228 4 года назад
Where is the whole playlist?
@realbrickbread
@realbrickbread 2 года назад
Finally, no more print statements for debugging
@desontdesont9108
@desontdesont9108 4 года назад
Maybe the tutorial is good. But not following pep8... Sorry, bye after three seconds
@TechWithTim
@TechWithTim 4 года назад
Cya!
@tassoskat8623
@tassoskat8623 4 года назад
Very good tutorial Tim thank you
@rievyrenceldran4522
@rievyrenceldran4522 4 года назад
hello sir i was wondering if you know that setting SecurePreTest in pycharm cuz im tryna prank my friend im tryna prank him by bruteforcing his fb and post clowns hehe please im not doing it for abd stuff e
@JoshQ9
@JoshQ9 4 года назад
Thanks, I was not aware of this. This is actually pretty similar to Matlab.
@deonobrien198
@deonobrien198 Год назад
Thank you so much, thats going to save me a ton of time!
@81viky
@81viky Год назад
it helped me understanding the debug process easily. Its good and simple for newone into PC world. Thank you!
@dereksawle
@dereksawle 3 года назад
great tutorial - thanks! 👍
@miguelpetrarca5540
@miguelpetrarca5540 3 года назад
how can you step into modules's source code written by others? I am using intelliJ and I have not figured out how via settings and google :(
@maciejuczynski345
@maciejuczynski345 Год назад
Very good video. What kind of font do you use?
@marghe2477
@marghe2477 3 года назад
when I click on the debug tool it says "connection to python debugger failed, socket closed" and it doesn't let me run the debug. any way to solve that?
@isacsoto9907
@isacsoto9907 4 года назад
i imported a Github project (github.com/cmseaton42/Allen-Bradley-Toolkit.git) but i do not know how to convert a directory to a module. Do you know how to convert a directory to a module?
@azielsolomon4868
@azielsolomon4868 4 года назад
Great tool THANKS Tim you da best
@zalasyu
@zalasyu 5 лет назад
Great job explaining and keeping it interesting despite how dry it could've been!
@chirilcugureanu1853
@chirilcugureanu1853 5 лет назад
Ești român sau moldovean ?
@VictorKDurand
@VictorKDurand Год назад
Thank you very much !! Cheers ! 👋
@TiMz
@TiMz 7 месяцев назад
awesome guide!
@Protaug33
@Protaug33 5 лет назад
If I'd like to work through these with you, where would the files be? The biggest issue I'm having in following along is in the fact that I can't play with the software to see the same thing you see on your screen.
@TechWithTim
@TechWithTim 5 лет назад
Work through what? I’m just showing you how to use and IDE there are no files involved that you would need to download.
@Protaug33
@Protaug33 5 лет назад
@@TechWithTim the code that is already in the terminal. Watching the first video you walked us through the commands.
@ankan54
@ankan54 3 года назад
What are the keyboard shortcuts for step into and step over etc. ?
@gunnarfuchs8022
@gunnarfuchs8022 5 лет назад
great video! one question though, you say the debugger goes through the text line by line, how come the code in the main function is executed without being called at the breakpoint?
@Chas-vb1kv
@Chas-vb1kv 3 года назад
Is this windows 10
@Crazy_Rom
@Crazy_Rom Год назад
Дякую!
@mohammadparvini1521
@mohammadparvini1521 2 года назад
In short: Life saver! Thanks for sharing this.
@tspark1071
@tspark1071 4 года назад
Good explanation. But the font and window is too small to see
@agustinpablorusso5084
@agustinpablorusso5084 3 года назад
thks man
@sainitishmitta04
@sainitishmitta04 3 года назад
Increase font
@brandomiranda6703
@brandomiranda6703 4 года назад
Do you have a video discussions vscode vs pycharm?
@TriflingToad
@TriflingToad Месяц назад
boss
@rafaelperezmederos6958
@rafaelperezmederos6958 5 лет назад
How do you upload pictures to your file on pycharm?
@aradhaymathur
@aradhaymathur 3 года назад
I use windows so go to C:\ C:\Users C:\Users\User_Name\ C:\Users\User_Name\PycharmProjects C:\Users\User_Name\PycharmProjects\ProjectName And upload it
@victordmytryk8190
@victordmytryk8190 2 года назад
Thanks man, it is helpful!
@yatrmtavsiyesidegildir6775
@yatrmtavsiyesidegildir6775 3 года назад
good job man keep it up
@CricketLivejavwad
@CricketLivejavwad 4 года назад
Thank You bro,It is very helpful.
@amaljohns8236
@amaljohns8236 Год назад
kopp kop
@helloes6236
@helloes6236 3 года назад
thanks for this!
@kaivalydaga9257
@kaivalydaga9257 3 года назад
thank you for this
@theophiri3870
@theophiri3870 4 года назад
So what’s more efficient, pycharm or python?
@aradhaymathur
@aradhaymathur 3 года назад
Python is a language. Pycharm is just a IDE
@brianaragon1641
@brianaragon1641 4 года назад
Awesome m8... cool stuff
@chirilcugureanu1853
@chirilcugureanu1853 5 лет назад
I though that debugging helps you understand how the program works, not the errors
@igonang1900
@igonang1900 4 года назад
en.wikipedia.org/wiki/Debugging
@edvardpotapenko
@edvardpotapenko 5 лет назад
Great tutorial, thank you very much
@TechWithTim
@TechWithTim 5 лет назад
You are very welcome
@luposX
@luposX 4 года назад
great video thanks
@AusbrandNet
@AusbrandNet 5 лет назад
cool
@sanjeebkumargouda1471
@sanjeebkumargouda1471 3 года назад
Amazing
@saadsouktane2538
@saadsouktane2538 4 года назад
thanks
Далее
Pycharm Tutorial #1 - Setup & Basics
12:36
Просмотров 1,5 млн
PyCharm Debug Tutorial | How to Debug Code in PyCharm!
14:59
+1000 Aura For This Save! 🥵
00:19
Просмотров 11 млн
荧光棒的最佳玩法UP+#short #angel #clown
00:18
Python Debugging (PyCharm + VS Code)
24:18
Просмотров 38 тыс.
Advanced Debugging in PyCharm
59:44
Просмотров 30 тыс.
25 nooby Python habits you need to ditch
9:12
Просмотров 1,8 млн
Debugging in Python with PyCharm
12:01
Просмотров 7 тыс.
10 Python Functions That Will Simplify Your Life
19:19
Python 101: Learn the 5 Must-Know Concepts
20:00
Просмотров 1,2 млн
42 PyCharm Tips and Tricks
1:08:08
Просмотров 82 тыс.
Debugging 101: Replace print() with icecream ic()
12:36
Please Master These 10 Python Functions…
22:17
Просмотров 164 тыс.
+1000 Aura For This Save! 🥵
00:19
Просмотров 11 млн