There was an issue on localgov_openreferral recently, caused by xdebug_break() being in some committed code. (See localgovdrupal/localgov_openreferral#70).
We could add a check for this and other debug functions using phpcs, like this: https://matthewdaly.co.uk/blog/2017/11/06/catching-debug-statements-in-php/