LoginSignup
1
2

More than 3 years have passed since last update.

Xcodeのコンソールから変数を確認&設定

Posted at

Xcodeのコンソールから変数を確認&設定

すぐ忘れてしまうので自分用のメモとしてまとめておく

0.準備
メニューバーから View -> Debug Area -> Activate Console をクリック
スクリーンショット 2020-11-28 0.29.33.png

1.変数を確認する
po 確認したい変数
スクリーンショット 2020-11-28 0.25.17.png

2.変数を設定する
expression 代入したい変数 = 代入したい内容
スクリーンショット 2020-11-28 0.26.15.png

※注意事項
・コンソールは All Output または Debugger Output のモードにしておく。
・ブレークポイントで一時停止中でないと確認&設定できない。

参考:https://dev.classmethod.jp/articles/ios-debug/

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