After updating to macOS Mojave, I started getting a prompt for a user name and password everytime I debugged golang in GoLand. This was frustrating but I was able to stop it from prompting by running this command in my terminal:
sudo /usr/sbin/DevToolsSecurity --enable
Once I ran this command, I stopped seeing the prompt for “Developer tools access needs to take control of another process for debugging to continue. Type your password to allow this.”
Hopefully, this works for you!