user4951
user4951

Reputation: 33130

Watching Expression in Xcode

- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName;
{
    if ([elementName isEqualToString:@"Badger"])
    {
        self.currentBusiness=nil;
    }
    if ([elementName isEqualToString:@"Title"])
    {
        self.currentBusiness.Title=self.currentProperty;
        NSLog(@"self.currentBusiness.Title=%@",self.currentBusiness.Title);
    }
}

Okay The NSlog correctly print BadgerNew[2516:207] self.currentBusiness.Title=Martabak Telor India

Which is correct.

But if I add expression on the watch window and put

self.currentBusiness.Title

I got nothing. In fact, there is no way to know that self.currentBusiness.Title=@"Martabak Telor India" without NSLog

Am I missing something?

Upvotes: 0

Views: 360

Answers (1)

Alexander N.
Alexander N.

Reputation: 564

Check your "Active Configuration" in Xcode, it should be Debug.

Also go to project setting -> build. Under GCC 4.2 - Code Generation check "Generate debug symbols", set "Optimization Level" to "None" and "Level of Debug Symbols" to "All Symbols".

Hope this will help.

Upvotes: 1

Related Questions