/godelve

Dockerized Golang debugging throw delve

Primary LanguageDockerfile

Dockerized Golang DELVE debugger

This repository about golang remote debug based on go-delve/delve

Getting started:

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

Options:

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