[Lldb-commits] [lldb] [lldb] Add step back single instruction for targets supporting reverse execution (PR #191183)

Maarten Steevens via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 9 22:52:45 PDT 2026


MaartenS11 wrote:

> I don't know much about thread plans, and hence I am not able to review this in depth.
> 
> That being said a small side note: As soon as this lands, we can add support for the `supportsStepBack` capability to lldb-dap. With this capability enabled, VS-Code will show dedicated "reverse-continue" and "step-back" buttons in the UI.
> 
> From the [debug-adapter-spec](https://microsoft.github.io/debug-adapter-protocol/specification#Types_Capabilities):
> 
> ```
>   /**
>    * The debug adapter supports stepping back via the `stepBack` and
>    * `reverseContinue` requests.
>    */
>   supportsStepBack?: boolean;
> ```

Correct, that is something I imagined being possible now. Keep in mind that this PR only implements stepping back one instruction currently and does not add a source level step (that will probably come some time down the line). Vscode will also display both a step back out and step back button but I guess these can perform the same operation for now.

https://github.com/llvm/llvm-project/pull/191183


More information about the lldb-commits mailing list