These are chat archives for derekparker/delve

25th
Apr 2016
Florin Pățan
@dlsniper
Apr 25 2016 00:15
I've seen: derekparker/delve#444 and sent a LoadConfig object with MaxStringLen: 100 but still nothing
Florin Pățan
@dlsniper
Apr 25 2016 00:22

this is how the response from the server looks like:

{"id":4,"result":{"Variables":[{"name":"e","addr":859530616304,"onlyAddr":false,"type":"string","realType":"string","kind":24,"value":"","len":5,"cap":0,"children":[],"unreadable":""},{"name":"d","addr":859530616320,"onlyAddr":false,"type":"string","realType":"string","kind":24,"value":"","len":5,"cap":0,"children":[],"unreadable":""},{"name":"c","addr":859530616336,"onlyAddr":false,"type":"string","realType":"string","kind":24,"value":"","len":5,"cap":0,"children":[],"unreadable":""},{"name":"b","addr":859530616352,"onlyAddr":false,"type":"string","realType":"string","kind":24,"value":"","len":5,"cap":0,"children":[],"unreadable":""},{"name":"a","addr":859530616528,"onlyAddr":false,"type":"string","realType":"string","kind":24,"value":"","len":5,"cap":0,"children":[],"unreadable":""}]},"error":null}

for the mentioned commit. The code is at github.com/dlsniper/u/dbg/3/demo.go and I have a breakpoint on line 13 (Printfstatement). (I'm on go 1.6.2, but in 1.6.0 it was the same)

John Dyer
@jdyer09
Apr 25 2016 21:00

I have a question about delve test that I either don't understand but maybe it's a bug, not sure.

I have a project structured like projectroot/foo/bar. In those the packages are main/main/bar. If I'm in projectroot and call 'go test ./foo/bar/' it runs fine and passes, but if I call 'dlv test ./foo/bar/' it panics, the reason being that there is a relative path to a file in the /bar/ tests. 'cd foo/bar && dlv test' works just fine.