Hi,
While trying to debug (using p
/ po
) at a breakpoint on Xcode
, I get the following error:
I am trying to print the input parameters to the function.
func f1(p1: Set<CKRecord>,
p2: Set<CKRecordID>,
context: NSManagedObjectContext?) {
guard let context = context,
let containerName = containerName else { //containerName is an enum iVar
return
}
//more code
print("aaa") //Breakpoint is over here.
}
Error 1:
Couldn't apply expression side effects : couldn't get the data for variable containerName
Error 2: (sometimes I get the following error)
error: <EXPR>:3:1: error: use of unresolved identifier 'containerName'
However the side panel (on the left) with the variable names contains detail, again when I right click to print it throws the same error on the console.
Attempts made:
I have tried both po
and p
Note:
Build configuration is Debug