In this recipe, we explore the options available for troubleshooting and debugging event scripts. Because event scripts are, by their nature, triggered by network, or device-related events rather than human interaction, the ordinary interactive methods for troubleshooting software complexity and bugs are left wanting. In order to optimize the code/run/debug cycle for event scripts, we outline some useful techniques here to help.