Virgin FreeBSD install to include xfce, login as user, open terminal, can't use pkg to install go/vscode (not enough privileges). su to increase privs. pkg install both apps (they install as root:wheel), exit back to user. mkdir ~/go/subdirs. exit terminal back to xfce desktop, create a launcher for vscode, launch vscode & install go extension. simple 'hello, world' program, go build to make binary.
Now here is the trouble. I try to debug the binary using dlv (which was installed by vscode as user:user) and it fails with this message:
Looks like a permissions problem, right? But as above, the owner of dlv is user:user and the permissions allow execution for anyone. I even changed all the ownerships of vscode (and links to code-oss) to user:user. Same 'operation not permitted' error when invoking dlv.
If I subvert the "don't log in as root" rule, and run vscode as root, it debugs without problems but vscode complains about being used as root and other problems surface.
I've stared at this for a couple of days and I'm stumped. Any ideas?
(I have lots of experience with vscode on Windows)
Now here is the trouble. I try to debug the binary using dlv (which was installed by vscode as user:user) and it fails with this message:
Code:
"could not launch process: fork/exec /usr/home/user/go/src/hello/hello: operation not permitted"
If I subvert the "don't log in as root" rule, and run vscode as root, it debugs without problems but vscode complains about being used as root and other problems surface.
I've stared at this for a couple of days and I'm stumped. Any ideas?
(I have lots of experience with vscode on Windows)