【问题标题】:VS Code debug '__Invoke-ReadLineForEditorServices' is not recognizedVS Code 调试“__Invoke-ReadLineForEditorServices”无法识别
【发布时间】:2020-05-12 19:40:27
【问题描述】:

使用 VS Code 版本:1.44.2(系统设置)。

$error.clear()
Write-Host "this is the error message"
Write-Host "the result is $($?)"
$null -eq $LASTEXITCODE
Write-Host "lec is $($LASTEXITCODE)"
$LASTEXITCODE

我在开始调试之前使用了 $error.Clear()。

PS C:\src\t> $error.clear()

PS C:\src\t> $error

PS C:\src\t> c:\src\t\Trap.ps1
                        ### debugging started, beak on first statement, $error already has an entry
[DBG]: PS C:\src\t> $error

The term '__Invoke-ReadLineForEditorServices' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
[DBG]: PS C:\src\t>

【问题讨论】:

    标签: powershell visual-studio-code vscode-debugger


    【解决方案1】:

    这是一个官方错误,早已为人所知,尚未修复。

    https://github.com/PowerShell/PowerShellEditorServices/issues/1295

    【讨论】:

      猜你喜欢
      • 2021-08-26
      • 2020-09-08
      • 1970-01-01
      • 2022-10-05
      • 2020-08-02
      • 2021-04-03
      • 2023-04-08
      • 2019-07-12
      • 2022-01-18
      相关资源
      最近更新 更多