Added check if pretty print debug exists