There is a small issue in the code example. InitDebugPrintf() function is not called from the application that initializes the task Task_Debug and queue debugMessageQ. Add the following line of code in main() and the code worked fine.
InitDebugPrintf(); /*Add this line*/
/* Start the RTOS scheduler. This function should never return */
Let us know if this works for you.
It works fine,thanks.