When evaluating some variables holding an optional value in the debugger with e variable
, Xcode prints something like (Bool?) $R3 = nil
. This gives the impression that the value is nil (what else should it mean?) and hovering that variable in the code editor also shows a popover with the content nil
, but evaluating e variable?.description
shows that it holds some value, for example (String?) $R4 = "false"
(as a validation, the command e variable == false
prints (Bool) $R6 = true
.
I submitted a bug report on November 2019, more than 2 years ago, and it never got any response. Is it possible that this is the expected behavior? Why can nobody fix it? I'm constantly wasting time because of this bug that causes me to make wrong assumptions during debugging.