You can try running sudo DevToolsSecurity -enable I'm testing here. This command enables the user to be part of the developer group, so it can debug.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: