When I debug my code I often use echo-like function together with <pre></pre> to include white spaces in output. Hence, I create d function:
and place it in the beggining of ProjectConfiguration.php file. Then I can use it in any place of project – in command line tasks as well. [Earlier I placed it in frontend_dev.php file, but then I could not use it in tasks.]