V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
TheCure
V2EX  ›  Go 编程语言

Goland 调试的时候为啥看不到某些变量值?

  •  
  •   TheCure · 2018-07-27 00:36:58 +08:00 · 1630 次点击
    这是一个创建于 2093 天前的主题,其中的信息可能已经有所发展或是发生改变。

    结构体是这样的

    type LogItem struct {
    	Index   int
    	Term    int
    	Command interface{}
    }
    

    但是实际上, 调试的时候, 找到这个变量, 并不显示 struct 里面的内容

    Image of Yaktocat

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5228 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:40 · PVG 15:40 · LAX 00:40 · JFK 03:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.