Replies: 2 comments 6 replies
-
|
By reset do you mean code execution is interrupted each time after connecting, but the file system is listed and REPL prompt is responsive? Unless you're running into any exceptions or connection attempts failing - this is the intended and unfortunately necessary behaviour. To facilitate the file system view, the plugin needs to run a script to print all the files/folders and details about them. And by that interrupting the code execution. But it shouldn't interrupt your workflow too much. You can send the Ctrl-D etc. shortcuts to interact with the device REPL and reset it - or use the Reset button in the REPL tab - the device will reboot and execute your main.py. You can automate this with the upload run configuration, it can upload code and restart the device to execute it in one click. Also - if at all possible, I recommend against using WebREPL. It is slow, has bugs and no where near as optimized and tested as this plugin's serial communication. If you need it, expect slower uploads and responsiveness |
Beta Was this translation helpful? Give feedback.
-
|
In the specific project I work with at the moment (a mqtt-modbus gateway) I manage through sending debug-info via the mqtt, so its not really an issue at the moment. Its more that I think it would be a convenient way for OTA-debugging. Ie connect via WebREPL and monitor debug-outputs for say 10 minutes? This scenario would still not be possible with your suggestion, right? Again this is not a big thing, just a nice feature, thanks for confirming the behavior. To conclude: |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
First of all! Great tool, previously worked with vs-code + PyMkr, this is a great improvement for me!
Im trying to learn how to use the web-repl, but find that the unit is reset every time that I attempt connect the REPL.
Using a browser I could connect to web_repl without reset, but using MicroPython Tools the unit is reset (as with serial connection). I cannot find a setting that avoids this. Is there one?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions