When I set breakpoints I keep getting Invalid expression for variables that are clearly set and there "in context".
Furthermore lets say I have an object X with a property y
I'm able to check object X with all of its properties but If i try to watch for X.y I get "Invalid expression"
this doesnt make much sense... I even try to add watch directly from X.y in the watch section but then I got this error
Details
Failed to set watch point
Domain: IDEDebugSessionErrorDomain
Code: 2
Failure Reason: error: Watchpoint creation failed (addr=0x282efac68, size=8, variable expression='self.controller').
error: sending gdb watchpoint packet failed
User Info: {
DVTRadarComponentKey = 855031;
}
--
System Information
macOS Version 12.1 (Build 21C52)
Xcode 13.2.1 (19586) (Build 13C100)
Timestamp: 2022-03-02T15:45:33Z
I've looked into my build options for the project and optimizations are set to None on Debug...
Am I missing something?