go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
22.87k stars 2.14k forks source link

Unable to debug Python Buildpack - arguments aren't being passed on properly #1495

Closed ivanmir closed 5 years ago

ivanmir commented 5 years ago

Please answer the following before submitting your issue:

Note: Please include any substantial examples (debug session output, stacktraces, etc) as linked gists.

  1. What version of Delve are you using (dlv version)? Delve Debugger Version: 1.2.0 Build: $Id: 068e2451004e95d0b042e5257e34f0f08ce01466 $

  2. What version of Go are you using? (go version)? go version go1.11.5 linux/amd64

  3. What operating system and processor architecture are you using? Linux 4.4.0-43-x86_64 GNU/Linux

  4. What did you do? dlv debug ~/python-buildpack/src/python/supply/cli/main.go --backend=native --headless --listen=127.0.1.1:2345 --log --api-version 1 --accept-multiclient -- "/home/ivan/fuzzy/ /tmp/fuzzy /home/ivan/fuzzy/.cloudfoundry 0"

This produces the following lines: API server listening at: 127.0.1.1:2345 INFO[0002] launching process with args: [/home/ivan/python-buildpack/bin/debug /home/ivan/fuzzy /tmp/fuzzy /home/ivan/fuzzy/.cloudfoundry 0] layer=debugger

  1. What did you expect to see? When I try to connect remotely, with the following command:

dlv connect 127.0.1.1:2345 --log

  1. What did you see instead? I get nothing. There isn't even a connection refused or any response whatsoever. I am also unable to stop the process by hitting CTRL+C (I must kill its PID).

If I telnet to ip/port I can see the connection is opened. There is no connection refused - so there is no firewall issues.

Any ideas?

Best regards, Ivan

aarzilli commented 5 years ago

This mechanism is the same mechanism used by all delve frontends to talk to delve, if it didn't work they wouldn't work either, therefore it's almost certainly a problem with your network configuration.

aarzilli commented 5 years ago

Closing, no feedback.