Pycharm Tutorial #2 - Debugging

preview_player
Показать описание
In this pycharm tutorial I will be covering debugging and how to use the very powerful debug tool built-in to pycharm. This debug tool will save you tons of time and allow you to quickly and efficiently solve problems with your code.

Last video covered setup and basics

Please leave a LIKE and SUBSCRIBE for more content!

Tags:
- Python Tutorials
- Pycharm Tutorial
- Pycharm tutorial for beginners
- Pycharm tutorial community edition
- How to use pycharm
- Debugging with pycharm
- Debugging in python pycharm
Рекомендации по теме
Комментарии
Автор

Go follow my twitter for exclusive updates and leaked content!

TechWithTim
Автор

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!

brianwheeler
Автор

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.

normanlove
Автор

Great work, I have got to say, your work is in upper standard in this kind of videos...

chaosolid
Автор

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

konstantinburlachenko
Автор

Very helpful. I've been using PyCharm for a while but I hadn't taken the time to look at the debug tool.

ChaosArtist
Автор

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!

matteo
Автор

Great job explaining and keeping it interesting despite how dry it could've been!

zalasyu
Автор

Very usefull! Finally I understood pycharm debugger!!!

migueldomingos
Автор

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

seytanc
Автор

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.

tempor
Автор

thanks for taking your time on creating this videos! I done some C++ coding but not much phyton. Phyton is much more simple.

maurosgarage
Автор

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?

gunnarfuchs
Автор

your videos are excellent. Your videos are very much useful to me, Many thanks for that. My warm regards to you.

s.baskaravishnu
Автор

it helped me understanding the debug process easily. Its good and simple for newone into PC world. Thank you!

viky
Автор

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?

johnsoler
Автор

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 ;) ..

deepaksingh
Автор

Thank you very much for such a nice explanation. It was very useful for me.

Eritco
Автор

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!

qewrhmz
Автор

Thank you so much, thats going to save me a ton of time!

deonobrien
join shbcf.ru