Unable to inspect local Swift variables or step over await calls in Xcode

I don't think that would've helped β€” I'm pretty sure the dev tools folks work in another building.

I read through both forums threads you linked to, and neither contained any information about how to reproduce this issue in a self-contained project. "+1"-type posts are not helpful β€” and sadly, for extremely circumstance-dependent issues like this one, neither is "here are general details about my setup" because it's simply not enough information to go on.

I can't speak to the feedback you filed, nor do I work at Apple β€” but if it's not actionable then all it can do is be a "+1" to a pile of "we know there's an issue here but we haven't been able to reproduce it in order to fix it". There isn't really much that can be said in that case.

Because good feedback is immensely helpful internally even if you don't hear about it publicly. Apple never comments on anything unreleased, nor do they discuss anything under investigation. When I did work at Apple, I really appreciated getting reproducible feedback that led to actionable bug fixes, even if the reporter couldn't receive public acknowledgement for weeks or months. That was as frustrating for me as it was for the reporter, but at least the bugs got fixed.

If Apple didn't care, they wouldn't prompt for your feedback at all, or offer a way to provide it, or respond to threads like this asking for additional information to help reproduce and fix the bugs you're seeing.

I don't feel attacked, but comments like these make for an unwelcoming environment, both for folks who read these threads, and for, y'know, the people actively trying to fix these issues.

12 Likes

Would you mind sharing the FB number with me? I'd like to take a look.

3 Likes

I just ran into this with Version 16.4 (16F6). I am running Hummingbird (server framework) as a separate Task.detached. I also have some simple code to get the current date. If I run Hummingbird, then LLDB cannot display anything in the simple code. If I comment out Hummingbird, then the simple code can be debugged. Something about having many threads running is messing up LLDB.

3 Likes

Even stranger, it has nothing to do with Hummingbird. I tried commenting out various things. I have defined a single async method in addition to calling Hummingbird via a Task.detached. If I comment out the call to the single async method, then everything is fine. If I call the function, even if execution has not gotten that far yet, then LLDB can’t display any variables. If I comment out the Hummingbird part, then LLDB is happy. Only if I have Hummingbird AND call my function, then LLDB fails. Too much async makes LLDB unhappy. Nuts.

5 Likes

sounds to me like you have a small project that can consistently reproduce this issue. could you share it with us?