Hello, I can't seem to set any breakpoint in didSet for all properties inside Observable.
Is this a bug?
XcodeVersion 15.2 (15C500b) Thanks!
Hello, I can't seem to set any breakpoint in didSet for all properties inside Observable.
Is this a bug?
XcodeVersion 15.2 (15C500b) Thanks!
Yep. I’m seeing the same thing with the tiny test tool (see the end of this post). I’d appreciate you filing a bug about this. Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
import Observation @Observable class Test { var test: Int = 5 { didSet { print("did set") } } } func main() { let t = Test() print("before") t.test = 1 print("before, \(t.test)") } main()
FB13656592 (breakpoint is not working for didSet for all properties inside Observable)
Done. Thank you
Observing (heh) the same behavior as of Xcode 16.2.