Hi,
I am a newbie and I am looking for a IDE with the debug tool to work on micropython pyboard lite and ESPs.
Everything I tried the debug tools with an IDE, it tells me it cant find the librairies...
I tired to install the uPycraft but its only for Ubuntu 16 and I have 18. It cannot run... I also tried to compile from source but does not work
thnx in advance
DrMe
Good micropython IDE to debug on linux ?
Re: Good micropython IDE to debug on linux ?
Might be worth clarifying what you mean by "debug tools". There is no line by line debugger for MicroPython (like pdb or gdb).
But if you're looking for tools like a way to deploy code or access the serial console, then yeah upycraft, thonny, pycharm etc.
I use sublime text with a combination of pyboard.py, miniterm.py and rshell.
But if you're looking for tools like a way to deploy code or access the serial console, then yeah upycraft, thonny, pycharm etc.
I use sublime text with a combination of pyboard.py, miniterm.py and rshell.
Which IDE? What libraries?
What didn't work? Was there a compiler error?
Re: Good micropython IDE to debug on linux ?
Hello maybe I don't speak correctly but when I start the debug tool from an IDE it tells me that it can't find the module "machine" for example. At the first line of code where its written "import machine" .Which IDE? What libraries?
Concerning the compilation of upycraft : the compiler gives me an error because it needs the zlib version x.x and it can't find it in ubuntu 18. The main problem is I installed all zlib packages and I have higher version of zlib and the compiler needs the exact version x.x of zblib. I tried the backport but I don't want to mess up with old packages ...What didn't work? Was there a compiler error?
Precompiled program from github gave me the same error...
Does anyone tried and succeed to make it working on Ubuntu 18 ?
Re: Good micropython IDE to debug on linux ?
This is likely because it's trying to run the code in regular Python, not on the actual device.
Re: Good micropython IDE to debug on linux ?
Re: Good micropython IDE to debug on linux ?
Thonny seems to be talked about a lot, and it's made specifically for MicroPython. I have not tried it myself but it seems to do the things you're looking for.
There's also a MicroPython plugin for PyCharm.
And for micro:bit and ESP8266/ESP32 there's Mu (https://codewith.mu/). It's should be a simple patch to get it working with Pyboard and everything else, it just needs to have the USB VID/PID configured.
Hopefully some other people will have more suggestions. I so much more prefer to use a simple editor (Sublime Text), and then a terminal sitting next to it with pyboard.py/mpreplfs.py or rshell running.
There's also a MicroPython plugin for PyCharm.
And for micro:bit and ESP8266/ESP32 there's Mu (https://codewith.mu/). It's should be a simple patch to get it working with Pyboard and everything else, it just needs to have the USB VID/PID configured.
Hopefully some other people will have more suggestions. I so much more prefer to use a simple editor (Sublime Text), and then a terminal sitting next to it with pyboard.py/mpreplfs.py or rshell running.
Re: Good micropython IDE to debug on linux ?
I'm a happy Visual Studio Code user. The Python and Magic Python extensions provide good Python support and excellent syntax highlighting.
On my radar is to use MicroPython Stubber and Micropy CLI both of which can help improve Intellisense. I've tried them out - and they look promising! - but haven't used them 'in anger' yet...
On my radar is to use MicroPython Stubber and Micropy CLI both of which can help improve Intellisense. I've tried them out - and they look promising! - but haven't used them 'in anger' yet...
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
MicroPython IDE? Unconvinced.
I'm with @jimmo on this one. MicroPython lacks a debugger. To me the principal benefit of an IDE is a tightly integrated visual debugger, and (alas) you aren't going to get that. So what does an IDE offer that you don't get with a really good programmer's editor and rshell?
People will debate editors forever; I use Kate. This supports multiple projects each with multiple files and has a great range of features and plugins designed for programmers. With Kate and my version of rshell with macros I'd need a lot of convincing to change to an IDE.
FWIW I do have extensive experience of using IDE's. With the right debug support they are great...
People will debate editors forever; I use Kate. This supports multiple projects each with multiple files and has a great range of features and plugins designed for programmers. With Kate and my version of rshell with macros I'd need a lot of convincing to change to an IDE.
FWIW I do have extensive experience of using IDE's. With the right debug support they are great...
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.