codegangsta / gin

Live reload utility for Go web servers
MIT License
4.23k stars 315 forks source link

Is it possible to use gin with dlv debugger? #146

Open FarhadF opened 6 years ago

FarhadF commented 6 years ago

Is it possible to use gin with dlv debugger? Any help would be appreciated.

rahuldaga commented 5 years ago

bump

profsmallpine commented 5 years ago

Not sure if you mean to debug the gin server or whatever you are using gin to run. If it's the latter, then you attach delve to the PID and then can use vscode or atom or whatever to create breakpoints and check stuff out.

dlv attach --headless --listen=:2345 $(pgrep -f $binary_filepath) --api-version=2