This repository about golang remote debug based on go-delve/delve
Firstly configure your IDE to remote debugging Go application on port :5813 then start your application
cd Go_Project_Folder
docker run -v $(pwd):$(pwd) -e PROJECT_PATH=$(pwd) -p 5813:5813 ptflp/godelve
Environments variables:
PROJECT_PATH - path to project with main entrypoint
CONFIG_FILE - path to config file of golang application
Full example:
docker run -v $(pwd):$(pwd) -e PROJECT_PATH=$(pwd) -e CONFIG_FILE=./conf/app.yaml -p 5813:5813 ptflp/godelve