Setting up a debugger

Can anybody explain(or put a tutorial) how to use a go debugger with the project?

Currently, I’m using Goland which has debugger inbuilt into it but I don’t know how to setup the configuration for debugging.

You will usually want to debug the daemon, to do that set the following:

Run kind: Package
Package path: github.com/ipfs/go-ipfs/cmd/ipfs
Go tool arguments: -i
Program arguments: daemon
Module: go-ipfs

For any other command just change program arguments.

1 Like