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 specified in the created configuration matches the board you are using.
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
Debugmode.
To learn more about the debug configuration, please refer to ESP-IDF OpenOCD Debugging.
