Thonny IDE Debugging Tutorial (for IOT projects)


  • 01 March 2018
Project Description

   Thonny is a Python IDE for beginners. It supports different ways of stepping through the code, step-by-step expression evaluation, detailed visualization of the call stack and a mode for explaining the concepts of references and heap. (refer to http://thonny.org/)

    For our Innovaker Digital Circuit Kits, inside its prebuilt Raspbian, it has Thonny Python IDE preinstalled, which is very handy for Python development.

    In this tutorial, we will go through the Python debugging using Thonny IDE (step by step), focus on how to debug the sample Python code for our Innovaker kits.

Step 1: open Examples folder, right click the mouse, choose “Thonny Python IDE” to start

thonny ide 1

 

Step 2: under “Run” tab, choose “Run current script” to run program

thonny ide 2

 

Step 3: choose “Debug current script”, then three debugging button will show

thonny ide 3

 

Step 4: use “step into” to go into certain function, and debug it step by step

thonny ide 4

 

Step 5: last step is click “stop” to stop debugging, it may interrupt the program, click “OK”

thonny ide 5

 

Live Preview
  • Skills
  • Client