0

I am trying to use delve in Eclipse Che

Running Eclipse Che in docker with

--privileged

is not helping

docker run -it  --privileged --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/data eclipse/che start

When running dlv debug main.go I get could not launch process: fork/exec /projects/desktop-go-simple/debug: operation not permitted

Can you run dlv debugger in Eclipse Che

Chris G.
  • 23,930
  • 48
  • 177
  • 302
  • You are suppose to supply a package name to `debug`. It defaults to the main package if you omit it. – RayfenWindspear May 15 '17 at 19:43
  • This may be unrelated, but on install I got this warning `If you get "could not launch process: could not fork/exec", you need to try in a new terminal.` – RayfenWindspear May 15 '17 at 19:58
  • Thanks @RayfenWindspear same thing package or not. Did you start the docker container with --privileged. – Chris G. May 16 '17 at 07:53
  • Were you able to do that same in a Docker container? Let's take Che out of equation for a while. – bianchi Dec 20 '17 at 15:44
  • Yes, it works in docker container - make sure that you have the same versions on host and in container. – Chris G. Dec 20 '17 at 19:19

1 Answers1

0

Adding --privileged adds capabilities to Eclipse Che CLI only. Instead of that add CHE_DOCKER_PRIVILEGED=true line to che.env file inside of Che data directory mounted to /data

gaal
  • 148
  • 1
  • 5