Eh? What "-d"?

Use /f (or -f) to flush the group membership cache.

The debug message does not need debug mode - you just want to insert a temporary message so that you can determine whether the InGroup() is processing or not.

If your MapDrive UDF outputs messages then this will suffice.