Debugging
Debugging strategies are rudimentary for now:
- assign a value of
(lambda (err) (message "Error while executing director script: %S" err))to the:on-errorproperty - if you’re running a headless session under
screen -D -m, run a visible one instead - increase
:delay-between-stepsto see what’s going on - set a
:log-targetfile andtail -fit - sprinkle the script with
(:log FORM)steps - add a
(:suspend)step, inspect the session interactively, resume withM-x director-resume