Advanced Debugging in PyCharm
HTML-код
- Опубликовано: 9 июн 2024
- PyCharm's debugger is one of its most popular features. But many just stick to the basics and don't learn intermediate and advanced features.
In this webinar, two of PyCharm's core developers who work on the #debugger show its less-known but powerful features, while talking a bit about the debugger architecture and future improvements.
Timeline:
00:00 - Introduction
01:24 - Liza shows advanced features of the debugger
31:02 - Andrey shows remote debugging
50:39 - Andrey covers architectural ideas for debugging
Resources:
Liza's GitHub repo for her session - github.com/Elizaveta239/Advan...
Andrey's GitHub repo for his session - github.com/avli/AdvancedDebug...
PyCharm website - jb.gg/lgn904
PyCharm blog - jb.gg/2i46q6
PyCharm on Twitter - / pycharm
JetBrains on Facebook - / jetbrains
About the Presenters
Elizaveta Shashkova is a software developer of the #PyCharm IDE at JetBrains. She's been working on #Python debugger for several years and currently she's focused on Data Science tools. / lisa_shashkova
Andrey Lisin is a software developer at JetBrains. He is the current maintainer of the PyCharm debugging subsystem. Before that, he was doing back-end development and machine learning. / minus_void - Наука
To the question of logging output into the file (23:25). Liza said you can't do that, but actually, you can use the built-in function open(). Type into "Evaluate and log" field something like "open('my.log', 'a').write(f'{text} {final}')" and it will write values of "text" and "final" variables into the file.
Great video! Especially case with errors. Even if English sometimes confusing :) As Russian to Russian, really likes Liza's approach to telling story, widely covered topic on debug!
Thanks! It're really useful.
Is it possible for pycharm's debugger to attach to python scripts that run inside of other applications, like irc clients or media players?
What about debugging async code? Do you have plans to implement evaluation of coroutines and other things?
Hi! We have several feature requests about async debugging: youtrack.jetbrains.com/issue/PY-24748 and youtrack.jetbrains.com/issue/PY-22961. We're going to implement them soon, so feel free to vote for the issues and follow for updates
@@elizavetashashkova893 thank you
Elizabeth Shashkova Exciting I cant wait. I have a .net dll with and a callback handler and i’m using pythonnet. would love to debug what is going on between my python script and the callback and even breakpoint. Is this going to be possible in this upcoming asynch feature? When is the expected release?
I only 5 minutes in and I could not continue.. The 'my.log' is not working. What can I do if my logger is not logging?
Is there a video on how to debug Javascript efficiently in PyCharm Django projects? I must be doing something wrong because it's quite hard.
Ok first thing, at 2:04, there is a python script and a jupyter notebook that are open side by side, how can this be done?
The lecturer was asked (minute 48) about debugging a docker running on a remote host, and he answered that it can be done using some magic.
How to do it?
How to config the progress bar to cat and rainbow like that in video :D
There is a plugin for that. Look at intellij plugin menu
It's called the Nyan Progress Bar plugin plugins.jetbrains.com/plugin/8575-nyan-progress-bar
Absolutely fantastic.
Glad you think so!
The title of the second half should be, Andrey shows remote debugging but he won't actually show us how to do it.
Finally I will stop flood my code with "print" lines...
You lost me on how to set up the Remote Debug Server. I see that you created a custom configuration (to use Python Debug Server) but I don't understand how the project Interpreter needs to be defined/configured. It looks like you might be using the Interpreter you defined in the previous step (Remote Interpreter) but you go very fast through that. Also, how is the remote application started in this case? I appreciate your time in making the video but you are skipping over things someone would not understand if they had not done remote debugging for the first time. It feels like this video is more geared to someone who has done this all before and just needs a refresher.. I was really hoping for something more tutorial based
Very helpful tutorial, Thanks .
For Shorter version Python Debugging in Pycharm. ruclips.net/video/vQp_s7ugBTE/видео.html
You should have used dark theme 🙄
The feedback we've gotten in the past is 60% "use light theme", so we try to alternate.
@@pauleveritt201 Definitely light theme gang here
i dont understand you completetely yet :( its like a motivation to study english hardly!
Not that advanced, still the basics.
This is terrible. Why not have the presenter do this in their native language and add subtitles?