I have an app that requires sudo privilege to run as it connect to a port. I run it from the command prompt with the command. sudo go run appname.go.
How can I run the app using the debugger using visual code with the delve debugger? I can run and trace it fine until it reaches the point where it attempts to open the port and then it exits with the permissions denied error.