I have the remote develop problem. I want to ask for some advices to solve this problem.
when my code under ~/ floder, debug cannot stop at breakpoints:

I tried to debug C file under ~/ floder, no problem, can stop at breakpoint
Tried:
sudo chmod 777 ~/code, but not work.Check if, as I mentioned here, there is no symlink in the project settings.
For mac, make sure go env does not include (as in issue 2807), GOFLAGS="-trimpath"
The solution would be to add to your
launch.jsonremotePath": "/myapp/"