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

[Unity] VCodeで Debuggerを使用する

0
Last updated at Posted at 2025-07-04

VisualStudioCodeでDebuggerを使用する

  • Unityを開く

  • Unityからダブルクリックでスクリプトを開く

  • VSCodeが立ち上がるのでコマンドパレット[F1]で>unityと入力
    スクリーンショット 2025-07-05 0.26.10.png

  • Attach Unity Debuggerを選択
    スクリーンショット-2025-07-05-0.28.18.png

  • うまくいかない時はUnityとVSCodeを再起動する(特に初回)

  • Attach to Unity となっていれば成功
    スクリーンショット 2025-07-05 0.35.40.png

  • ブレークポイントを張ってUnityを再生

  • デバッグが終了したら切断アイコン(一番右)を押して終了
    スクリーンショット 2025-07-05 0.40.35.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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?