Sitelet https://github.com/jcward/vscode-hxcpp-debug/issues/50
Skip to content

Removing breakpoint doesn't work #50

Description

@jcward

Looking at adapter.log, it appears I'm always sending AddFileLineBreakpoint commands. I need to keep a local representation of "added" breakpoints, then remove them when the list is updated.

e.g. on adding breakpoint at line 19, vscode sends me:

{"command":"setBreakpoints","arguments":{"source":{"name":"/Main.hx","path":"/home/jward/dev/vscode-hxcpp-debug/test cli/Main.hx"},"lines":[19],"breakpoints":[{"line":19}],"sourceModified":false},"type":"request","seq":24}

And I send: AddFileLineBreakpoint(Main.hx,19)

Adding on 24:

{"body":{"breakpoints":[{"verified":true,"line":19},{"verified":true,"line":24}]},"command":"setBreakpoints","success":true,"request_seq":23,"type":"response"}

And I send: AddFileLineBreakpoint(Main.hx,19) AddFileLineBreakpoint(Main.hx,24)

Then removing 24:

{"command":"setBreakpoints","arguments":{"source":{"name":"/Main.hx","path":"/home/jward/dev/vscode-hxcpp-debug/test cli/Main.hx"},"lines":[19],"breakpoints":[{"line":19}],"sourceModified":false},"type":"request","seq":24}

And I send: AddFileLineBreakpoint(Main.hx,19)

I need to maintain state and send DeleteFileLineBreakpoint.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions