I have a block called myBlock.
I put a breakpoint after the creation of myBlock. In the console, I type
p myBlock(@"5")
All I get is the error
error: called object type '__block_literal_generic *' is not a function or function pointer
error: 1 errors parsing expression
So, it it possible to evaluate in block in the debugger console?
PS: More code
NSArray * array = @[@"a", @"b"] ;
BOOL (^myBlock)(NSString *) = ^BOOL(NSString * string)
{
return [string isEqualToString:@"hello"] ;
} ;
// The breakpoint is here
for (NSString * str in array)
{
myBlock(str) ;
}