PowerShell/PowerShell

Set-PSDebug -Trace 1 prints only first line of a multiline command

オープン

#8,113 opened on 2018/10/24

 (22 件のコメント) (11 件のリアクション) (0 人の担当者)C# (8,434 件のフォーク)batch import
HacktoberfestIn-PRUp-for-GrabsWG-Interactive-Debugging

Repository metrics

Stars
 (55,102 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド