-
Notifications
You must be signed in to change notification settings - Fork 225
Fixes argument truncation where long launch.json arguments were cut off at ~2KB, causing debugger launch failures.
#1529
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
Changes from 1 commit
bc13df5
ee93674
1da0e3a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,7 +92,7 @@ protected virtual void InitProcess(Process proc, out StreamReader stdout, out St | |
| _debuggerPid = _process.Id; | ||
| stdout = _process.StandardOutput; | ||
| // Creating a new stream writer to set encoding to UTF-8 with UTF8Identifier as false. This prevents sending Byte Order Mask within the stream. | ||
| stdin = new StreamWriter(_process.StandardInput.BaseStream, new UTF8Encoding(encoderShouldEmitUTF8Identifier: false), 1024 /* note: this is the default buffer size in the BCL */, leaveOpen: true); | ||
| stdin = new StreamWriter(_process.StandardInput.BaseStream, new UTF8Encoding(encoderShouldEmitUTF8Identifier: false), 65536 /* note: this is the default buffer size in the BCL */, leaveOpen: true); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume this comment is no longer true so it should be deleted:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
| _stdErrReader = _process.StandardError; | ||
| _remainingReaders = 2; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,13 +62,13 @@ public override void InitStreams(LaunchOptions options, out StreamReader reader, | |
| ); | ||
| // Starting with .NET Framework 4.7, this method authenticates using None, which allows the operating system to choose the best protocol to use, and to block protocols that are not secure. | ||
| sslStream.AuthenticateAsClientAsync(tcpOptions.Hostname, certStore.Certificates, System.Security.Authentication.SslProtocols.None, false /* checkCertificateRevocation */).Wait(); | ||
|
gregg-miskelly marked this conversation as resolved.
|
||
| reader = new StreamReader(sslStream); | ||
| writer = new StreamWriter(sslStream); | ||
| reader = new StreamReader(sslStream, Encoding.UTF8, false, 65536); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This value |
||
| writer = new StreamWriter(sslStream, Encoding.UTF8, 65536); | ||
| } | ||
| else | ||
| { | ||
| reader = new StreamReader(_client.GetStream()); | ||
| writer = new StreamWriter(_client.GetStream()); | ||
| reader = new StreamReader(_client.GetStream(), Encoding.UTF8, false, 65536); | ||
| writer = new StreamWriter(_client.GetStream(), Encoding.UTF8, 65536); | ||
| } | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.