PowerShell/PowerShell
Set-PSDebug -Trace 1 prints only first line of a multiline command
Open
#8,113 opened on Oct 24, 2018
HacktoberfestIn-PRUp-for-GrabsWG-Interactive-Debugging
Repository metrics
- Stars
- (55,102 stars)
- PR merge metrics
- (PR metrics pending)
Description
Steps to reproduce
Set-PSDebug -Trace 1
Write-Output "foo `
bar"
Expected behavior
Something like:
DEBUG: 3+ >>>> Write-Output "foo `
DEBUG: 4+ >>>> bar"
foo
bar
Actual behavior
DEBUG: 3+ >>>> Write-Output "foo `
foo
bar
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.2.0-preview.1
PSEdition Core
GitCommitId 6.2.0-preview.1
OS Microsoft Windows 10.0.17134
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0