Conversation

JustinGrote

PR Summary

The vscode stopDebugging API when used with the dotnet debugger would kill the powershell process if it was in attach mode, so we use a customRequest DAP message to disconnect the dotnet debugger since there is no vscode direct API for disconnecting the debug session.

Fixes #4702

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@JustinGroteJustinGrote requested a review from a team August 18, 2023 01:40
@JustinGroteJustinGrote self-assigned this Aug 18, 2023
@JustinGrote

@andyleejordan should we bring in https://www.npmjs.com/package/@vscode/debugprotocol as a dependency for strong typing of the custom disconnect request? esbuild should tree shake it and not increase the overall file size much.

@andyleejordan

@andyleejordan should we bring in https://www.npmjs.com/package/@vscode/debugprotocol as a dependency for strong typing of the custom disconnect request? esbuild should tree shake it and not increase the overall file size much.

Yes!

@JustinGrote

Yes!

Since the only thing we need to bring in is an interface, it should be fine as a dev dependency

@JustinGrote

I made a slight change to use the full request type as the template, because hovering it will provide full intellisense over what this request does.
image

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just me being annoying with spacing and wishing ESLint were better at things like that.

@JustinGrote

Just me being annoying with spacing and wishing ESLint were better at things like that.

@andyleejordan Prettier is focused on whitespace stuff and interoperates with ESLint, we can explore adding it to the toolchain.

@JustinGrote

Test Failure on 5.1 doesn't appear to be related to this PR, so I'm going to merge it.

@JustinGroteJustinGrote added this pull request to the merge queue Aug 20, 2023
@github-merge-queue-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 20, 2023
@JustinGroteJustinGrote added this pull request to the merge queue Aug 20, 2023
@github-merge-queue-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 20, 2023
@JustinGroteJustinGrote added this pull request to the merge queue Aug 20, 2023
Merged via the queue into main with commit bf54870 Aug 20, 2023
@JustinGroteJustinGrote deleted the justingrote/feature/detachDotnetDebugger branch August 20, 2023 22:07
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

Binary Module Debugging with Script specified causes a terminal error exit -1 at the end of the debugging session on Windows only