Skip to content

fix: ensure debug console separates output lines #1590

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

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

dancrumb
Copy link
Contributor

@dancrumb dancrumb commented Mar 4, 2023

Debug console output sometimes gets clumped together when capturing stdout/err instead of console calls since data is sent to DAP as soon as it arrives.

This change changes the behavior do that output is sent to DAP on newlines.

It also looks out for ETX characters and, if it finds those, it switches to sending output to DAP on each ETX. This allows for better handling of multiline log entries.

Fixes microsoft/vscode#175763

Debug console output sometimes gets clumped together when capturing
stdout/err instead of console calls since data is sent to DAP
as soon as it arrives.

This change changes the behavior do that output is sent to DAP on
newlines.

It also looks out for ETX characters and, if it finds those, it switches
to sending output to DAP on each ETX. This allows for better handling
of multiline log entries.

Fixes microsoft/vscode#175763
@dancrumb
Copy link
Contributor Author

dancrumb commented Mar 4, 2023

@microsoft-github-policy-service agree

@connor4312 connor4312 self-assigned this Mar 6, 2023
@connor4312 connor4312 merged commit 1d127a9 into microsoft:main Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug console loses ability to differentiate lines of output
2 participants