I found a similar question that threw the same exception, but it wasn’t helpful. No one answered: Getting "Single stepping until exit from function CALayerGetDelegate, which has no line number information." in iphone sdk
Sample parameter that works when program is aa+a+
Sample parameter that causes break when method called again by parameter program is aa+a+a. Why?
Here’s my code:
+(NSSet *)variablesUsedInsideProgram:(id)program
{
NSMutableSet *variablesUsed = [NSMutableSet setWithArray:program];
//put the program into a mutable set then pop off everything else that is !a,!b,!c
id objectReferenceFromVariablesUsed = nil;
for(objectReferenceFromVariablesUsed in variablesUsed) //breaks here
{
if (!([objectReferenceFromVariablesUsed isEqual:@"a"] | [objectReferenceFromVariablesUsed isEqual:@"b"] | [objectReferenceFromVariablesUsed isEqual:@"c"]))
{
[variablesUsed removeObject:objectReferenceFromVariablesUsed];
}
}
return [variablesUsed copy];
}
DEBUG print out statements I get:
(gdb) po program<__NSArrayI 0x68a7a00>(a,a,+,a,+,a)
so I know my program pushed in variable a
(gdb) po variablesUsed
{(
"+",
a
)}
Unique values from program when added to NSMutableSet
What I know that is happening:
objectReferenceFromVariablesUsed = +, then it gets popped off the Set
(gdb) po variablesUsed {( a )}
Goes back into the loop then breaks. Gets Error Message "Single stepping until exit from function objc_exception_throw, which has no line number information. Catchpoint 2 (exception thrown).
Does anybody know what might be causing this?
FIXED!
}