Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ability to trace DAP messages at client side #5064

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

JustinGrote
Copy link
Collaborator

@JustinGrote JustinGrote commented Oct 11, 2024

PR Summary

This PR adds a setting to enable tracing of DAP requests via the output pane to simplify issue troubleshooting and enable better user reporting.

By enabling the powershell.trace.dap option, a new DAP output pane will appear upon debug invocation. When set to "debug" log level, it will show summary of messages back and forth, similar to LSP "messages" setting. When set to "trace" log level, it will also show content similar to LSP "verbose" setting. The panel will not disappear once debug stops and will be resused for subsequent DAP connections.

This PR also segregates the LSP messages into their own output pane so they don't cross-pollute with PSES messages.

Capture.mp4

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 -> Developer tooling, tests not necessary
  • 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

@JustinGrote JustinGrote self-assigned this Oct 11, 2024
@JustinGrote JustinGrote marked this pull request as draft October 11, 2024 01:12
@JustinGrote JustinGrote force-pushed the justingrote/feature/dap-trace branch from 782cea2 to 3b3c4d5 Compare October 11, 2024 01:32
@JustinGrote JustinGrote added Issue-Enhancement A feature request (enhancement). Area-Debugging labels Oct 11, 2024
@JustinGrote JustinGrote marked this pull request as ready for review October 11, 2024 01:44
@JustinGrote JustinGrote force-pushed the justingrote/feature/dap-trace branch from a1de55f to 6669264 Compare October 11, 2024 01:45
@JustinGrote JustinGrote force-pushed the justingrote/feature/dap-trace branch from 7d355cb to d7ad116 Compare October 14, 2024 19:54
@JustinGrote JustinGrote enabled auto-merge October 14, 2024 19:54
src/features/DebugSession.ts Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@JustinGrote JustinGrote added this pull request to the merge queue Oct 17, 2024
@andyleejordan andyleejordan removed this pull request from the merge queue due to a manual request Oct 17, 2024
@JustinGrote JustinGrote added this pull request to the merge queue Oct 17, 2024
@JustinGrote
Copy link
Collaborator Author

@andyleejordan thank you! I left this at two commits and didn't rebase so as not to require re-review, should still be a linear history commit.

Merged via the queue into main with commit 9cd6b91 Oct 17, 2024
7 checks passed
@JustinGrote JustinGrote deleted the justingrote/feature/dap-trace branch October 17, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Debugging Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants