3

I have already asked, and got a very good answer for debugging locally with delve(golang debugger).

Now I am trying to remote debug with Delve using VS Code.

I have got a sample app mentioned here, and further github linked to source code here. Note: The debug project is in a branch called debugging.

Are you able to make it work?

I have also created/opened an issue in the repo.

Chris G.
  • 23,930
  • 48
  • 177
  • 302

1 Answers1

4

The following worked:

  1. Remove line 3 in launch.json "debugServer": 4711,"
  2. Changed line 29 in launch.json ""host": "192.168.99.100" // Docker IP " to "127.0.0.1".

I was sure I tried this before, but apparently not bout at the same time. Anyways happy go' lucky!

Chris G.
  • 23,930
  • 48
  • 177
  • 302
  • Can you please help me with any documentation or helper guides on how to configure remote debugging on go? – Amal Ts Apr 30 '17 at 08:59
  • I eventually gave up, hoping it will be better/easier some day - that or rewrite my code. If you come by something good, please let me know. – Chris G. May 01 '17 at 06:46