If you wish to debug other microcontrollers, such as the ESP32 or the Raspberry Pi Pico, you can use Wokwi for VSCode, which has integrated debugger support.
Using the debugger
1
Start debugging
Click the menu button in the simulator toolbar, and select Debug.
2
Set breakpoints
Click on the left margin of the code editor to set breakpoints. The debugger will pause execution when the program reaches the breakpoint.
3
Control execution
Use the debug toolbar to control program execution.
- Continue - Continue running the program. If the program is paused at a breakpoint, the debugger will continue running until the next breakpoint.
- Step over - Step over the current line of code. If the current line is a function call, the debugger will step over the function call and stop at the next line of code.
- Step into - Step into the current line of code. If the current line is a function call, the debugger will step into the function and stop at the first line of the function.
- Step out - Step out of the current function.