Link to Slack thread
When running an enrolment with DEBUG set to true, enrolment actions are replaced and do not execute.
This is backed up in the log file showing: Debug mode enabled, replacing '$label' with delay
However, items that are executed by finishedTrigger are installed, which is the opposite.
Conversation with Armin (see thread linked above) also show that this would impact finishedScript, but I cannot confirm that in this bug report as I've not used it.