我使用陷阱将错误写入文件,并希望在错误发生时写入行号.
$_.Exception.StackTrace is not answer.
哪里可以得到行号错误?也许是一些预定义变量
powershell
powershell ×1