Optimize the debug rendering. Added line numbers.