-
Notifications
You must be signed in to change notification settings - Fork 227
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); | ||
|
||
| _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.
Show resolved
Hide resolved
|
||
| reader = new StreamReader(sslStream); | ||
| writer = new StreamWriter(sslStream); | ||
| reader = new StreamReader(sslStream, Encoding.UTF8, false, 65536); | ||
|
||
| 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.