Elektrine lite

← Feed

@cocoaphony@mastodon.social

Post #307691

2026-02-15 17:43 UTC

I really wish we had a Task-aware Swift debugger. So often when something hangs, there's nothing on any of the thread stacks, because Tasks don't hold the thread while waiting. Do we have any tools yet that are aware of waiting Tasks rather than just waiting threads?

Replies (6)

  • @mei@donotsta.re 2026-02-15 17:48

    @cocoaphony@mastodon.social is this anything? https://github.com/tokio-rs/console

    Open ##2637522

  • @heathborders@hachyderm.io 2026-02-15 18:02

    @cocoaphony@mastodon.social IntelliJ has this for Kotlin coroutines. Hopefully Apple can follow their lead https://kotlinlang.org/docs/debug-coroutines-with-idea.html

    Open ##2637524

  • @tikitu@mastodon.social 2026-02-15 18:06

    @cocoaphony@mastodon.social Instruments has task-aware stuff. Not anything like a debugger but you might be able to wrangle it to show what you need?

    Open ##2637525

  • @davedelong@mastodon.social 2026-02-15 18:54

    @cocoaphony@mastodon.social the way the tooling is lagged so far behind the evolution of the language has been really infuriating and demoralizing, to be honest. It's felt like Xcode has gone from a best-in-class IDE to a mediocre-at-best experience. I sincerely hope something changes. Task-aware debugging is just one step along the way.

    Open ##2637526

  • @calicoding@mastodon.social 2026-02-15 19:09

    @cocoaphony@mastodon.social I mean, I’d be happy with a swift debugger that can reliably po.

    Open ##2637529

  • @ole@chaos.social 2026-02-16 16:05

    @cocoaphony@mastodon.social There is `swift inspect dump-concurrency`, but I don’t know anything about it beside these two forum posts from @ktoso@mastodon.social and Johannes Weiss. I have no idea if this can inspect iOS apps in the simulator or even on device. • https://forums.swift.org/t/task-debugging/64181/2 • https://forums.swift.org/t/asyncthrowingstream-unexpectedly-hanging/81890/5

    Open ##2637530