3
2

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 5 years have passed since last update.

LLDB で variable not available になる現象の回避策

3
Posted at

Xcode の LLDB で

 (lldb) po self.objects

などとするとそのオブジェクト(この場合、self.objects)の中身を出力出来たりしてデバッグの際に便利だが、これが “variable not available” となってしまうことがある。これはビルド時に最適化処理が行われているからだという。(デフォルトで有効)

これは、Build Settings にて Optimization Level を “None(-O0)” にすることで回避する事が出来る。

 

参考
http://stackoverflow.com/questions/13040777/lldb-error-variable-not-available

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?