1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Go】VSCodeの実行で標準入力を行うと「noDebug mode: unable to process 'evaluate' request」が発生

Posted at

概要

GoでAtCoderをやる時など、標準入力を使うと思いますが、VSCodeで実行時にnoDebug mode: unable to process 'evaluate' requestというエラーが発生しました。
なお、Goの標準入力の詳細については、[1分学習]Goで標準入力を受け付けるの記事を参照ください。

対応

こちらのissueを参照すると、VSCodeのlaunch.jsonへ設定追加が必要なようです。"console": "integratedTerminal"の設定を追加すれば、動作しました。
念の為、launch.jsonの全体内容を以下に記載します。

launch.json
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Package",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${fileDirname}",
            "console": "integratedTerminal",
        }
    ]
}
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?