Elektrine lite

← Feed

@cocoaphony@mastodon.social

Post #2637532

2026-02-17 02:57 UTC

@ktoso@mastodon.social @ole@chaos.social ironically I actually have such a list (or at least a list that includes the problematic Task). The thing I want to debug is in a unit test, and in unit tests I track all Tasks via a wrapped initializer so that I can centrally cancel all of them and detect tasks that fail to respect cancellation. But I don’t have a way to attach a debugger to them to see what’s going on.

Replies (1)

  • @cocoafrog@hachyderm.io 2026-02-17 06:05

    @cocoaphony@mastodon.social @ktoso@mastodon.social @ole@chaos.social Instruments with the Swift Concurrency template should be helpful here. It should be able to show you all the tasks that were created, how long they lived and what state they were in. You can also profile tests, not just apps.

    Open ##2637533