Debug Your Project
In most cases, only two things are required to start debugging an ESP-IDF project:
Create a debug configuration
Check whether the board in the created configuration corresponds to the board in use.
Note
If you’re using Windows, you may need to install drivers using Zadig to run a debug session successfully. For detailed instructions, please refer to this guide.
The fastest way to create a debug configuration is as follows:
Expand the configuration list in the launch bar and click on
New Launch Configuration...
.Select
ESP-IDF GDB OpenOCD Debugging
, then double-click or clickNext
.A preview of the new debug configuration will open, where you should check the board settings.
After creating the debug configuration, you can proceed with debugging the project:
Select the configuration you just created.
Choose
Debug
mode.
To learn more about the debug configuration, please refer to ESP-IDF OpenOCD Debugging.