Thread Troubleshooting
moswald [5:04 AM]
does anyone have a good way to find which property on a View is being accessed from the wrong thread?
sigh. found it, but there should be an easier way than just adding `.ObserveOn(RxApp.MainThreadScheduler)` everywhere until it goes away
anaisbetts [6:43 AM]
Can
Disable Just My Code
moswald [6:44 AM]
oh, you know what, I think that you gave me this same tip like a year ago
disabling Just My Code
it
it throws inside the setter for the View
anaisbetts [7:27 AM]
Just go back up the stack
ghuntley [2:17 PM]
@kentcb what if that was baked in by default, framework inclusion? It’s such a common mistake and pain in the ass to debug. Splat.Verbose(s => s changed off ui thread) - etc.
kentcb [2:39 PM]
@ghuntley @moswald Maybe. There are some concerns though: assuming UI thread is 1 (true on iOS, but probably not everywhere and maybe not even safe to assume there). Also, might be better with `PropertyChanging` rather than `PropertyChanged`, just to get in as early as possible. I’m not sure it’s framework-worthy, but certainly a useful trick to know about.
anaisbetts [5:58 PM]
I
[5:59]
On :apple:-based platforms where threading issues silently do Weird Shit it
kentcb [7:39 PM]
I feel like this is something that should be both platform and build specific (debug only). To my knowledge, that would require the call site to be in charge of whether it happens or not, and therefore can’t be baked into the framework (unless we shipped both debug and release NuGets, which would be terribly unorthodox and painful for consumers)