Glish scripts can be very difficult to debug. This chapter describes the tools that are available in Glish to debug scripts, to log interactions with Glish, and to write scripts which handle errors properly.