Delve: Permission denied error on debug

Created on 20 May 2016  路  6Comments  路  Source: go-delve/delve

##Hello,

I am running on Ubuntu Gnome 15, GO 1.6 and I have installed delve as suggested on the installation page. I try to debug using the command "dlv debug and I get a permission denied error.

dlv debug ruleset.go
could not launch process: fork/exec ./debug: permission denied

I believe I did not miss anything during installation. Any suggestions?

kinneeds more info

Most helpful comment

@devtoro are you sure there is a main package in your current directory? If you run go build in that directory do you get an executable?

All 6 comments

The argument of debug is a package, not a file.

@devtoro Are you running this inside a docker container? If so check out this issue for the answer: https://github.com/derekparker/delve/issues/515.

@devtoro I've added some more language to the help output to clarify the usage of the commands: https://github.com/derekparker/delve/pull/543.

No I am not running inside docker. Just ubuntu gnome installation on my laptop. I tried using the package as an arguement, still the same output.

Even if I run just dlv debug, with no arguments ( then I suppose the main package of the directory I am in should start being debugged ), I still get the same error

dlv debug
could not launch process: fork/exec ./debug: permission denied

I don't quite get it. Even if I export a new TEMPDIR, the result is still the same..

@devtoro are you sure there is a main package in your current directory? If you run go build in that directory do you get an executable?

Closing this since no further info was provided and the problem was likely that the package in the current directory wasn't main (a problem that was addressed in a different issue).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wxqzhy picture wxqzhy  路  4Comments

derekparker picture derekparker  路  6Comments

NanXiao picture NanXiao  路  3Comments

delaneyj picture delaneyj  路  4Comments

wusendong picture wusendong  路  5Comments