我真的不知道爲什麼在這個特定的項目我的調試器是非常'禁用'。否可用Objective-C說明 - 爲什麼?
例如,我會希望得到一個對象的信息:
(lldb) po [_model dictionaryValue]
[no Objective-C description available]
我想知道這是爲什麼。這使得調試變得非常困難,而且只是在當前的這個項目上。我猜測我在某些時候對設置做了些什麼。幾乎在任何po someObject
我試圖檢查。但是,在調試控制檯左側的窗格中可以看到範圍內的變量。
我在Xcode 5上,我的項目中有Cocoapods,它是一個單元測試目標。
任何見解或解決方法?
更新:
爲了清楚起見,測試用例是如何實現的部分:
@interface WWCGateModelTests : XCTestCase
{
WWCGate *_model;
}
@end
@implementation WWCGateModelTests
- (void)setUp
{
[super setUp];
// Put setup code here; it will be run once, before each test case.
_model = [WWCGate loadGateModelWithIdentifier: kGateName]; // defined, not nil
}
- (void)tearDown
{
[super tearDown];
NSError *error = nil;
[_model saveModelOrError:&error];
// Breakpoint here. po _model does not print the model.
// This has been possible with other projects... po error will print
// nil to the console. How is an ivar not in scope?
}
你對'po _model'有什麼看法? – Abizern
恩......你看過這個問題嗎? :-) [no Objective-C description available] – horseshoe7
回答試圖幫助你的人的好方法。我打算繼續詢問你在哪裏進行調用,是否在範圍內,'dictionaryValue'方法的返回值是什麼。但我似乎太難以理解你的問題。 – Abizern