相关疑难解决方法(0)

为什么有时用lldb调试时"self"不可用?

我尝试在lldb上打印对象时有很多时间(当不是每次都有)时出现以下错误.是否有一些构建/调试配置要更改,或者这是lldb中的错误?

(lldb) po userLevel
error: warning: Stopped in an Objective-C method, but 'self' isn't available; pretending we are in a generic context
error: use of undeclared identifier 'userLevel'
error: 1 errors parsing expression
Run Code Online (Sandbox Code Playgroud)

我用llvm构建并且不剥离调试符号.

编辑:这是回溯:

(lldb) bt
* thread #1: tid = 0x1c03, 0x001169c5 FanCake-Beta`-[KWUserLevelController addPoints:](, _cmd=0x0029187b, points=15) + 179 at KWUserLevelController.m:53, stop reason = step over
    frame #0: 0x001169c5 FanCake-Beta`-[KWUserLevelController addPoints:](, _cmd=0x0029187b, points=15) + 179 at KWUserLevelController.m:53
    frame #1: 0x00112172 FanCake-Beta`-[KWEventRealTimeControllergameEngine:hostedGame:didSucceedIn:withScore:](self=0x0b9d7740, _cmd=0x0027a2a7, engine=0x1be5af40, game=0x1be5a850, completionTime=3.59473554800206, score=0) + 421 at …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c llvm ios lldb

14
推荐指数
3
解决办法
4797
查看次数

标签 统计

ios ×1

iphone ×1

lldb ×1

llvm ×1

objective-c ×1