BUG Fix debug mode with compound tasks