Add the Reset & Restart functionality (IEP-1177)
Some other IDEs by other uC vendors include a "Reset & Restart" button allowing the devloper to restart both the uC and the debugging session without having to reflash the image every time.
Under the hood the command is simply sending a monitor reset command to the GDB instance the debugger is attached to, AFAICT the OpenOCD/GDB interface is already working but issuing that command from the "Debugger Console" confuses the debugger.
Hi @LemonBoy,
Thank you for reporting this and sorry for the delayed response. Have you tried this button? It restarts debug without terminating and relaunching.
It's also available from the right-click on the debug thread action:
That's exactly the button I was referring to, but on my Eclipse (or better, Espressif IDE) install there's no trace of such button:
I can only guess it's because the ESP plugin and Eclipse are slightly old, I tried re-installing it using the latest online Installer but got the same 2.9.1 version again.
Espressif-IDE is an Integrated Development Environment(IDE) based on Eclipse CDT for developing IoT Applications using ESP-IDF framework.
Version: 2.9.1
Build id: 20230406-1540
OS: Windows 11, v.10.0, x86_64 / win32
Java vendor: Amazon.com Inc.
Java runtime version: 17.0.6+10-LTS
Java version: 17.0.6
Well, it turns out that Eclipse removed that button from the toolbar a while ago. No idea why it's still present in your Eclipse install.
From the plugin side it should be quite easy to add back the button into the debug toolbar, the action name is org.eclipse.debug.ui.commands.Restart.
Hi @LemonBoy,
Thank you for the info. I didn't know this command wasn't enabled by default. I probably have it because I accidentally installed additional (optional) packages from CDT Eclipse via the update site. We will include this command by default.
By the way, thank you for pointing out that the Espressif-IDE version is not updated in the online installer. It looks like PR is already there and will be merged soon. Here are options that you can use now to get the latest Espressif-IDE version:
- Espressif IDE 2.12.1 and then go to Espressif -> ESP-IDF Tools Manager -> Install Tools (provide path to existing esp-idf, tools installation process will be skipped, since tools are already installed, but it's important step to update environment variables inside the IDE)
- Windows offline installer - https://github.com/espressif/idf-installer/releases/download/espressif-ide-2.12.1-esp-idf-5.2/espressif-ide-setup-2.12.1-with-esp-idf-5.2.exe
- install the latest Eclipse CDT and then install our plugin via the update site (using Install New Software... option) https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/
Hi @LemonBoy,
I found which plugin update has org.eclipse.debug.ui.commands.Restart action. It's Embedded C/C++ GDB JTAG Debugging available in this update site: https://download.eclipse.org/embed-cdt/updates/v6/
or by using https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/ as in the screenshot below:
I tested it by installing the latest version of Espressif-IDE and after updating this plugin, this action appeared in the toolbar
Thanks for the feedback, after installing the updated Embedded C/C++ GDB JTAG Debugging package the restart action is shown in the toolbar.
Shall I close the issue? Or do you still plan on doing something related to this?
Hi @LemonBoy,
We are planning to make this action available out of the box. Until then, let's keep this issue open. Thank you.
I have the same issue. Sorry, but I don't understand how to fix.
I have the same problem. I got this to work. Not sure it's 100% what was intended. (Quotes are just for emphasis. You don't type in any of them.)
In the IDE, click on "Help", then "Install New Software..."
In the "Work With:" box, paste the URL "https://download.eclipse.org/embed-cdt/updates/v6/" and then press "Enter".
The large box will popluate with items to choose from.
Select "Embedded C/C++ GDB JTAG Debugging" from the first category. Click "Next" (twice).
Click on the espressif.com Update Site and then "Trust Selected". This needs to be repeated for a Trust Artifact (?)
The confirm restart of IDE.
After that "Restart without terminating and relaunching" appeared for me.
I'm not sure how to add "Terminate and Relaunch" to the toolbar (I'm new to Eclipse), but it is in a context menu as sigmaaa posted above.
@GrantGeno thanks for your supporto. It works also for me. Good!