Xcode on a classroom image asks students for admin password
You can add users you would like to have access to debugging to the _developer group.

dseditgroup -o edit -u adminusername -t user -a studentusername _developer


Replace ‘adminusername’ with the username of a sudoer you have the password to and ‘studentusername’ with the username of an account to add to the group.