These are chat archives for derekparker/delve

22nd
Feb 2018
thomasmckay
@thomasmckay
Feb 22 2018 00:10 UTC
@derekparker let me check. yes, just print command
golang-1.8.3-1.el7.x86_64 and go get -u github.com/derekparker/delve/cmd/dlv
there is no --version for dlv... rfe ;)
Derek Parker
@derekparker
Feb 22 2018 00:12 UTC
heh, follows go command convention, dlv version
thomasmckay
@thomasmckay
Feb 22 2018 00:12 UTC
1.0.0
Derek Parker
@derekparker
Feb 22 2018 00:16 UTC
@thomasmckay I just tried with Go 1.10 and Delve 1.0.0 and I am able to break and main and print variables, I don't have go 1.8 readily available, but I could pull it down for testing purposes, however do you have a specific function that you're having trouble with?
thomasmckay
@thomasmckay
Feb 22 2018 00:17 UTC
i'm happy to upgrade go. this is a centos7 vm fully up to date
Derek Parker
@derekparker
Feb 22 2018 00:18 UTC
See if that helps, but regardless we still support go 1.8 so if you can come up with more details or a reproducible test case we would certainly jump on fixing it
but upgrading would help isolate if it's really an issue with that version of go
thomasmckay
@thomasmckay
Feb 22 2018 00:19 UTC
reproducer is pretty much: 1) clone clair, 2) go install, 3) dlv debug clair, 4) set break, 5) try print
i am literally complete go noob :) i was trying to figure out why clair was not working with my setup and had just watched demo... good timing
Derek Parker
@derekparker
Feb 22 2018 00:21 UTC
haha, perfect timing
what function / file:line are you setting the breakpoint? I set one at main and stepped around and was able to print variables
thomasmckay
@thomasmckay
Feb 22 2018 00:22 UTC
break clair.RunUpdater
i'm running an experimental branch that sends results to a grafeas server so it may not be in master clair
Derek Parker
@derekparker
Feb 22 2018 00:23 UTC
ah, gotcha
thomasmckay
@thomasmckay
Feb 22 2018 00:23 UTC
let me try main... what did you break at?
Derek Parker
@derekparker
Feb 22 2018 00:24 UTC
just break main.main and next until the loop that checks for VCS
I haven't setup and run clair properly before so it's yelling at me about config missing and such, although that function does exist in master
thomasmckay
@thomasmckay
Feb 22 2018 00:25 UTC
interesting... maybe i'm just not understanding go. one sec while i pastebin
Derek Parker
@derekparker
Feb 22 2018 00:25 UTC
main.go:184 is where I'm printing the loop variable bin
thomasmckay
@thomasmckay
Feb 22 2018 00:26 UTC
so that's working, i think? print flagConfigPath shows value after next'ing past it
Derek Parker
@derekparker
Feb 22 2018 00:27 UTC
ah so, flag in that context is actually a package name not a variable
flag.CommandLine is a package variable
thomasmckay
@thomasmckay
Feb 22 2018 00:31 UTC
actually, i think "make install" from delve git has it working. still says "1.0.0"
or not...
whoAmI := uuid.New() should i be able to print whoAmI ?
feel free to shoo me away and go take go-lang 101
Derek Parker
@derekparker
Feb 22 2018 00:43 UTC
hah, nah no worries, happy to answer any Qs
but yes, you should be able to print whoAmI
did the new Go version help things?
thomasmckay
@thomasmckay
Feb 22 2018 00:47 UTC
i'll install that shortly. need to afk. check back tomorrow? i'm east usa timezone
Derek Parker
@derekparker
Feb 22 2018 00:47 UTC
ah, I'm PST, but yeah, no problem, ping me tomorrow when you're back around
thomasmckay
@thomasmckay
Feb 22 2018 00:48 UTC
great. there is another group that i asked how they debugged and they and println... i'd like to get them to switch ... so primitive!
Derek Parker
@derekparker
Feb 22 2018 00:49 UTC
haha, spread the word!
thomasmckay
@thomasmckay
Feb 22 2018 01:41 UTC
@derekparker 1.10 and print whoAmI worked