I was kind of expecting this function just call `getDebugListener()->printMessage(...);` multiple times, but I guess this works too. It's more work to implement the listener though.