0
0

More than 3 years have passed since last update.

VSCodeでPythonファイルをデバッグ

Posted at

VSCodeの拡張機能インストール

以下をインストール
image.png

デバッグ手順

インタープリター確認

仮想環境に入っている場合はvenvを選択しているか確認する。
image.png

ブレークポイントを設置

止めたいところにブレークポイントを設置。
image.png

デバッグ

番号の通り進める。
image.png

ブレックポイントの位置で止まる

image.png

デバッグでできること

helloの中身を確認。
デバッグコンソールにhelloと打ってエンターを押すとhelloの中身が確認できます。
image.png

メソッドを使って動きを確認することもできます。

image.png

0
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
0
0