を使用して、メインの power-shell スクリプトから呼び出される power-shell スクリプトをデバッグしたいと考えていますPowerShell ISE
。以下は、メイン スクリプトのサンプル コードです。
$myLog = "$scriptPath\BuildRelease\logs\LaLogs.log"
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
Set-Location -Path $scriptPath
Set-Location -Path BuildRelease
$paramList = "-ArgumentList -username $Login"
if($Mode -eq "False"){
Start-Process powershell -ArgumentList '-noexit','-File', 'Release.ps1', $paramList
}
ここでは、. を使用してRelease.ps1スクリプトにステップインしようとしていISE
ます。
キーを押してこれを実行しようとしましたF11
が、デバッガーがこのスクリプトに移動する代わりに、スクリプトが実行されます (ステップ インではなくステップ オーバーと同じです)。
どうすればこれを行うことができるか知っている人はいますか??