microsoft / microsoft/debug-adapter-protocol

Support SteppingGranularity "block"

Open
#356 0 comments 0 reactions 2 assignees View on GitHub

@roblourens is already working on this.

Since Nov 18, 2022.

feature-request
Dominant language
HTML
Stars
1.8k
Forks
173
Avg merge
7d 7h
Merged PRs (30d)
2

Description

DAP supports SteppingGranularity, which is defined as

type SteppingGranularity = 'statement' | 'line' | 'instruction';

However, some debuggers like LLDB support stepping to the end of a block. From LLDB help:

$ help thread step-over
       -e <linenum> ( --end-linenumber <linenum> )
            The line at which to stop stepping - defaults to the next line and only supported for step-in and step-over.  You can also pass the string
            'block' to step to the end of the current block.  This is particularly use  in conjunction with --step-target to step through a complex
            calling sequence.

So the following steps to the end of the current block:

thread step-over -e block

Could this "block" verb be added to SteppingGranularity?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.