Thonny debug.

802 views
Skip to first unread message

vidalv

unread,
May 10, 2021, 4:40:16 AM5/10/21
to thonny
Hello to everything, I am a new user of Thonny Editor with a PI-Pico card. In Win10-X64, I start debugging this basic program:
n = int(input('How long countdown? '))
while n > 0:
    n = n - 1
print('Go!')
I go from the drop-down menu to select the debug mode but all is greyed! We must do one thing in particular?
In the configuration I chose the Micropython interpreter (Raspberry PiCo) and the automatic port. Thank you for the support.

vidalv

unread,
May 10, 2021, 4:46:29 AM5/10/21
to thonny
On another hand, how is possible to display icons debug on main windows like us on Mac interface ?

Aivar Annamaa

unread,
May 10, 2021, 4:53:38 AM5/10/21
to thonny
Hi!

Thonny does not support debugging MicroPython code, because currently MicroPython doesn't provide necessary means for this. Debugger is only available for (local) CPython.

Best regards,
Aivar

vidalv

unread,
May 10, 2021, 5:14:55 AM5/10/21
to thonny
Hello Aivar, thank you for the answer, in this case why Thonny is recommended for use with the Pi-Pico?
Why a board selection is available in the selection of the interpreters (among ESP32 and others)?
And if instead of Micropython I use C ++?
What do you mean by "(local) CPython"?
Thanks.

Aivar Annamaa

unread,
May 10, 2021, 6:04:56 AM5/10/21
to thonny
Thonny is recommended for Pico because it can manage Pico's files and run code on Pico. Same for other MicroPython capable boards. By debug I mean being able to set breakpoints, single step etc and to my knowledge no IDE exists which allows this for MicroPython or CircuitPython (because this would require custom build of firmware and even then an important capability remains missing: https://github.com/micropython/micropython/issues/6799).

If you want to use C++, then Thonny is of no use for you. 

Best regards,
Aivar

--
You received this message because you are subscribed to the Google Groups "thonny" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thonny+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thonny/6d86b05b-5ae9-4605-827b-bc7c447b3386n%40googlegroups.com.

vidalv

unread,
May 10, 2021, 6:14:04 AM5/10/21
to thonny
Thank you  Aivar , understood!
Reply all
Reply to author
Forward
0 new messages