Skip to content

Better support of assembly-level debugging #2930

Description

@felias-fogg

Describe the request

When debugging, it is possible to open a "Disassembly" window by right-clicking on an entry in the "Call Stack" pane, and it is possible to set breakpoints on the instruction level. This is great!

It would be very convenient if single-stepping on the instruction level were possible and if one could stay in the Disassembly window when single stepping or continuation is requested, similar to what is possible in the cortex-debug extension as described here: https://github.com/Marus/cortex-debug/wiki/Disassembly-Debugging

It would be even better if one could view the source and assembly side-by-side. But this might be asking for too much.

Describe the current behavior

Single-stepping is done on the source-line level even when the "Disassembly" window is the current one, and every time one requests a single-step or a continuation, one switches back to the source file, which is very annoying.

You can reproduce this behavior by starting the debugger, stopping the program, and then right-clicking on the top entry in the call stack. Choose "Disassembly View". If you now click on "continue" or "step", you will immediately be transferred back to the source window.

Arduino IDE version

2.3.10

Operating system

macOS

Operating system version

15.7.4

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions