I wants to debug a power-shell script which is called from my Main power-shell script using PowerShell ISE
. Below is the sample code of my Main script.
$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
}
Here, I'm trying to step into Release.ps1 script using ISE
.
I have tried to do this by pressing F11
key, but instead of debugger going to this script, script gets executed (same as Step Over, instead of Step into).
Does anyone know how can I do this??