Templatify debug.sh.