Need help with formatting custom type

Have you tried stepping through your code in a debugger to see where it is looping? Some instructions in this thread: Zig Debugging with LLDB