Description
Describe the problem
Arduino IDE has an integrated sketch debugger. The debugger interface is presented in a view in the left side panel of the Arduino IDE window. When the user initiates a debug session by clicking the "Start Debugging" button on the Arduino IDE toolbar, the "DEBUG" opens and the user can use the interface to debug their sketch.
🐛 On the first attempt to use the debugger with a given sketch, the "DEBUG" view is empty. It is only populated on the next IDE session.
To reproduce
- Connect one of the boards with debugger support to your computer as appropriate.
- Select the board from the Tools > Board menu.
- Select File > New Sketch from the Arduino IDE menus.
- Select Sketch > Verify/Compile from the Arduino IDE menus.
- Wait for the compilation process to finish.
- Click the "Start Debugging" button on the Arduino IDE toolbar.
🐛 The left side panel opens, but the "DEBUG" view is blank:
Expected behavior
The "DEBUG" view is always populated with the UI after the user clicks the "Start Debugging" button.
Arduino IDE version
2.3.0
Operating system
- Windows
- Linux
Operating system version
- Windows 11
- Ubuntu 22.04
Additional context
I haven't done a full bisection, but I am not able to reproduce the fault with Arduino IDE 2.2.1.
I also sometimes encounter a partially populated view:
I haven't determined under which conditions that variant occurs vs. the fully blank view, but the workaround applies to both.
Workaround
- Select File > Quit from the Arduino IDE menus.
- Start Arduino IDE.
- Select the window of the sketch you were attempting to use the debugger with previously.
The "DEBUG" panel will now be populated with the standard debugger UI. - Click the "Start Debugging" button on the Arduino IDE toolbar.
The debugger will now be initialized and work as usual.
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details