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
  • НаукаНаука

Комментарии • 27

  • @Klavionik
    @Klavionik 4 года назад +4

    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.

  • @Ahmad-mq8xr
    @Ahmad-mq8xr 2 года назад

    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!

  • @nikolaysokolov9027
    @nikolaysokolov9027 4 года назад +3

    Thanks! It're really useful.

  • @IgnisTMage
    @IgnisTMage 3 года назад

    Is it possible for pycharm's debugger to attach to python scripts that run inside of other applications, like irc clients or media players?

  • @TheUnitto
    @TheUnitto 4 года назад +4

    What about debugging async code? Do you have plans to implement evaluation of coroutines and other things?

    • @elizavetashashkova893
      @elizavetashashkova893 4 года назад +4

      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

    • @justoneofthepeople7585
      @justoneofthepeople7585 4 года назад

      @@elizavetashashkova893 thank you

    • @timfairfieldAETestandMeasure
      @timfairfieldAETestandMeasure 3 года назад

      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?

  • @jessehahka
    @jessehahka 3 года назад

    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?

  • @jnscollier
    @jnscollier 2 года назад

    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.

  • @UnholyRenton
    @UnholyRenton Год назад

    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?

  • @zalmangoldstein3823
    @zalmangoldstein3823 Год назад

    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?

  • @tungsondo6411
    @tungsondo6411 4 года назад

    How to config the progress bar to cat and rainbow like that in video :D

    • @Adyel-YT
      @Adyel-YT 4 года назад

      There is a plugin for that. Look at intellij plugin menu

    • @AnthonyShaw
      @AnthonyShaw 4 года назад +1

      It's called the Nyan Progress Bar plugin plugins.jetbrains.com/plugin/8575-nyan-progress-bar

  • @ThomasMeli81
    @ThomasMeli81 2 года назад

    Absolutely fantastic.

  • @stefanagapie1769
    @stefanagapie1769 Год назад

    The title of the second half should be, Andrey shows remote debugging but he won't actually show us how to do it.

  • @Ahmad-mq8xr
    @Ahmad-mq8xr 2 года назад

    Finally I will stop flood my code with "print" lines...

  • @veloz7860
    @veloz7860 2 года назад +1

    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

  • @anandmaurya6133
    @anandmaurya6133 Год назад +1

    Very helpful tutorial, Thanks .
    For Shorter version Python Debugging in Pycharm. ruclips.net/video/vQp_s7ugBTE/видео.html

  • @jagadishb14
    @jagadishb14 4 года назад +10

    You should have used dark theme 🙄

    • @pauleveritt201
      @pauleveritt201 4 года назад +6

      The feedback we've gotten in the past is 60% "use light theme", so we try to alternate.

    • @d3stt1ny
      @d3stt1ny 3 года назад +1

      @@pauleveritt201 Definitely light theme gang here

  • @Sergiorius_Terrible
    @Sergiorius_Terrible 11 месяцев назад

    i dont understand you completetely yet :( its like a motivation to study english hardly!

  • @dasstraat
    @dasstraat Месяц назад

    Not that advanced, still the basics.

  • @stefanagapie1769
    @stefanagapie1769 Год назад

    This is terrible. Why not have the presenter do this in their native language and add subtitles?