If your PHP is running through a proxy like PHP-FPM, the proxy might report a timeout if the underlying PHP process is halted by the debugger. In that case you would still be able to debug and run the code line by line, but the output would never reach the proxy and the client of the request. Perhaps increasing timeout values somewhere in PHP-FPM configuration might help.