lloiser / go-debug

🐛 A go debugger for atom using delve.
https://atom.io/packages/go-debug
MIT License
388 stars 21 forks source link

how to add breakpoint when use remote? #148

Closed Rentu closed 5 years ago

Rentu commented 5 years ago
Starting delve with config "go-debug"
Started delve with config "go-debug"
Adding breakpoint @ go_app\main.go:10 failed!
  Error: could not find E:\go_app\main.go:10

show error as above when i use remote, the debugder always find win path not remote path, what should i do?

as follows is my config

{
  "configurations": [
    {
      "name": "go-debug",

 "mode": "remote",

 "args": ["..."],

 "env": { "<key>": "<value>" },

 "cwd": "",

 "host": "xxxxxx",
 "port": 2345,

 "program": "",

 "buildFlags": "",

 "init": "<path>",

 "showLog": true
    }
  ]
}
lloiser commented 5 years ago

Remote debugging using different OS is not supported at the moment.

Rentu commented 5 years ago

i suggest add config for different os , after all, there are most windows users

Rentu commented 5 years ago

thanks

lloiser commented 5 years ago

I'm not sure when I will get to this bug. Feel free to take a look at the code and create a pull request :)