When using the debug function debugWriteLine() from the debugUsb.c, that relies on Lufa, the application hangs indefinitely.
After some tedious debugging process with some brave LEDs, the problem seems to only appear when using any functionality that internally calls lufaWaitUntilDone(). Once it gets to that function the application hangs.
As a workaround to be able to still debug code, use debugWriteString(), add \n and \r manually to the output string, and call debugTask(), regularly, e.g. after each while loop.
When using the debug function debugWriteLine() from the debugUsb.c, that relies on Lufa, the application hangs indefinitely. After some tedious debugging process with some brave LEDs, the problem seems to only appear when using any functionality that internally calls lufaWaitUntilDone(). Once it gets to that function the application hangs.
As a workaround to be able to still debug code, use debugWriteString(), add \n and \r manually to the output string, and call debugTask(), regularly, e.g. after each while loop.