Skip to content

Debug view blank on first debugging session of a sketch #2354

Closed
@per1234

Description

@per1234

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

  1. Connect one of the boards with debugger support to your computer as appropriate.
  2. Select the board from the Tools > Board menu.
  3. Select File > New Sketch from the Arduino IDE menus.
  4. Select Sketch > Verify/Compile from the Arduino IDE menus.
  5. Wait for the compilation process to finish.
  6. Click the "Start Debugging" button on the Arduino IDE toolbar.

🐛 The left side panel opens, but the "DEBUG" view is blank:

image

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:

image

I haven't determined under which conditions that variant occurs vs. the fully blank view, but the workaround applies to both.

Workaround

  1. Select File > Quit from the Arduino IDE menus.
  2. Start Arduino IDE.
  3. 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.
  4. 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

Metadata

Metadata

Assignees

Labels

conclusion: resolvedIssue was resolvedtopic: codeRelated to content of the project itselftopic: debuggerRelated to the integrated debuggertype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions