Skip to content

Debug protocol extension: support full text ranges #34

Closed

Description

To be able to use the debug protocol in other IDEs (Visual Studio, Xamarin Studio) or VS Code in the future we should think about how the debug protocol should support compilers/runtimes that include full text ranges (start line, start column, end line, end column) in their debug info.

Suggestions: StackFrame, SourceBreakpoint and Breakpoint interfaces should add 'endLine?: number' and 'endColumn?: number'.

Activity

  1. added
    feature-request
    on Jun 14, 2016
  2. daviwil commented on Jun 14, 2016

    @daviwil

    PowerShell's debugger allows setting a breakpoint at a specific line/column (only start position) so this would be a nice addition for us.

  3. weinand commented on Jun 14, 2016

    @weinand
    Contributor

    David Wilson (@daviwil) setting breakpoints at line/column position is already possible since quite some time (and node-debug uses that), but there is no VS Code UI yet.

  4. added and removed
    feature-request
    on Jun 16, 2016
  5. weinand commented on Jun 23, 2016

    @weinand
    Contributor

    Gregg Miskelly (@gregg-miskelly) David Karlaš (@DavidKarlas) what exactly is the semantics of setting a breakpoint for a range of text (multiple lines)?

  6. DavidKarlas commented on Jun 23, 2016

    @DavidKarlas

    Imo, SourceBreakpoint doesn't need endLine and endColumn.

    What I meant is when breakpoint is hit we need full range, but that is provided via StackFrame, sorry for confusion I made...

    For Breakpoint(Information about a Breakpoint created in setBreakpoints or setFunctionBreakpoints.):
    This still makes sense imo since we want to make visual effect like this after breakpoint is placed(which can be adjusted a bit depending on .pdb informations)
    image

  7. gregg-miskelly commented on Jun 23, 2016

    @gregg-miskelly
    MemberAuthor

    Andre Weinand (@weinand) to answer your question: In VS Code, I don't think there is any value in the end line/col for SourceBreakpoint. In VS we have it because the language service gets to specify where exactly it wants the breakpoint set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions