Issues with sketch debugger

Continuing the discussion from Debugging on the new Nano ESP32:

The debugging is getting better.

There are some issues though in my setup (Ubuntu 23.04, Arduino IDE 2.2.1, Arduino ESP32 Boards 2.0.13).

The compiler issues a warning:

/home/c/.arduino15/packages/arduino/hardware/esp32/2.0.13/cores/esp32/esp32-hal-uart.c: In function 'uartSetPins':
/home/c/.arduino15/packages/arduino/hardware/esp32/2.0.13/cores/esp32/esp32-hal-uart.c:153:9: warning: 'return' with no value, in function returning non-void
         return;
         ^~~~~~
/home/c/.arduino15/packages/arduino/hardware/esp32/2.0.13/cores/esp32/esp32-hal-uart.c:149:6: note: declared here
 bool uartSetPins(uint8_t uart_num, int8_t rxPin, int8_t txPin, int8_t ctsPin, int8_t rtsPin)
      ^~~~~~~~~~~

When uploading, after the double tap, the upload progress bar does not stop when the upload is complete and finishes with an error. The upload is OK though.

The round button for starting the debugger is grayed out saying "No board selected" although it is.

I start the debugger from the debugger pane. Occasionally the round button is enabled but I don't known under which conditions that happens. I also managed to drag the debugger icon out of the sidebar by mistake and could not get it back. I deleted the Arduino related generated directories (~/.arduino15, ~/.arduinoIDE, ~/.config/arduino-ide, ~/.config/'Arduino IDE'), did a new install of the board but the debugger icon did not appear. The debugger button was enabled though and pressing it made the debugger icon in the sidebar re-appear. The question is: are there other directories to remove to make a fresh start?

As mentioned in earlier posts the global variables are not shown but specifying them in the watch section works.

Kind regards!

I have experienced the same issues.

The compiler warnings seemed to be associated with the latest boards update (.13), but they do not always show up for me. Sometimes they do and sometimes they do not.

Debugging seems to leave a lot of extraneous files in my sketch directory and I think that old versions of these files might be causing instability in the debug process.

I have found that if I copy the code of an existing sketch into a new sketch and then debug the new sketch then that yields more a more reliable debugging process.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.