LoginSignup
3
2

More than 3 years have passed since last update.

【VSCode】debugの設定: launch.json, console

Posted at

NOTE

新規のターミナルで開かれるのがウザすぎたので設定し直しました。

launch.jsonの作成

image.png

create a launch.json fileを押します。

image.png

デバッグしたい環境を指定することで、.vscode下に自動でlaunch.json作成してくれます。

image.png

launch.jsonのconsole設定

公式では3つの設定ができるらしい。

Many debuggers support some of the following attributes:
- console - what kind of console to use, for example, internalConsole, integratedTerminal, or externalTerminal


DEBUG CONSOLEに結果が表示される。

"console": "internalConsole"

image.png


デフォルトのTERMINALに結果が表示される。
デバッグする度に新規ターミナルが開かれる。
既存ターミナルにつづけて結果を表示する方法はわからない。。。誰か教えて下さい。

"console": "integratedTerminal"

image.png


デフォルトのTERMINALが別Windowで開かれる。

"console": "externalTerminal"

image.png

3
2
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
3
2