Thonny Tips - Using the Debugger

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น •

  • @1cookgs
    @1cookgs 10 หลายเดือนก่อน +2

    Excellent! Just what I needed. Thank you very much Chris.

  • @jyvben1520
    @jyvben1520 ปีที่แล้ว +1

    Good to know, so a pc python webclient can get live data from picoW webserver,
    so all the variables ( with values retrieved from the picoW ) can then be seen in Thonny variables sidebar while debugging
    or having a long sleep/dummy input to let us look at the variables at the moment where it might be going wrong.
    and the webclient can do that for many picoW ...

  • @mlongval
    @mlongval 5 หลายเดือนก่อน

    Thanks for the very well done video! Cheers from Canada!

  • @quaternion-pi
    @quaternion-pi ปีที่แล้ว

    Very helpful. If you are going to debug the code on the computer, VSCode seems to offer more robust debugging options than Thonny - but maybe I just like VSCode better. Thanks for the tips.

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  ปีที่แล้ว +1

      I am sure VSCode is far more capable, but these nice features surprised me in Thonny which is promoted as a basic IDE. Cheers! Chris

  • @skf957
    @skf957 ปีที่แล้ว

    Thanks Chris, another good one!

  • @georgesomaru8973
    @georgesomaru8973 2 หลายเดือนก่อน

    What's a good resource for learning Python on Thonny?

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  2 หลายเดือนก่อน

      Good morning georgesomaru8973,
      I am assuming you are new to computer programming and thus your first experience with it...
      I have a lot of examples on this channel showing how to work with sensors and I often walk the viewer through the test code explaining each line. This can be helpful to understand the "workings" of a program. However it is somewhat difficult if you don't have a fundamental understanding of programming.
      Because of this, I am considering starting a new series on the channel for people just like you. As it is still a fermenting idea, nothing is 100% yet but I am working towards this concept for teaching the basics
      Using PICO and Thonny (I like it and it is very affordable for everyone)
      Focus on using MicroPython (the micro controller subset language)
      Start with the requirement of a person wants to learn but knows NOTHING
      Cover concepts of what is needed to make a program function
      Cover concepts of how a program solves problems
      Build up the programming knowledge in small steps : frequently used "simple" functions that are used in almost ALL programs.
      I would certainly love to hear your feedback about this idea!
      Cheers!
      Chris

  • @Robavhtube
    @Robavhtube 3 หลายเดือนก่อน

    Hi Chris, my script starts with "from machine import Pin, Timer". When I try to debug, the first thing Ï get is an error: "machine not found". My Pico is engaged. What can I do? Regards, Rob

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  3 หลายเดือนก่อน

      Good morning Robavhtube
      I never recall experiencing that so I asked Google and found some answers but they varied greatly. Unfortunately I don't have an answer at the moment to offer. When I get in the workshop this weekend if I have time I will try a few things that I think could cause that and if I find anything I will share it.
      Cheers!
      Chris

    • @Robavhtube
      @Robavhtube 3 หลายเดือนก่อน

      Thanks a lot, Chris, also for the quick answer.