News for hackers. Stuff that matters.
Re:Looking at Unity made me understand the point of C++ coro... by DonHopkins on Wednesday March 25, 2026 @09:29AM (#47517094)
The Unity editor does not let you examine the state hidden in your closures or coroutines. (And the Mono debugger is a steaming pile of shit.)

Just put your state in visible instance variables of your objects, and then you will actually be able to see and even edit what state your program is in. Stop doing things that make debugging difficult and frustratingly opaque.

Re:Looking at Unity made me understand the point of C++ coro... by jayd16 on Wednesday March 25, 2026 @10:39AM (#47517948)
Use Rider or Visual Studio. Debugging coroutines should be easy. You just can't step over any yield points so you need to break after execution is resumed. It's mildly tedious but far from impossible.