我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何使用Go's Delve和Visual Studio Code将对象的值“打印”到控制台?

I have the "Delve" debugger setup for Go with Visual Studio code and a super simple program. If I set a breakpoint, and I want to print a variable declared earlier, I'm used to being able to say po foo to print out the value of the object foo to the console, but Visual Studio Code just complains about "expected 'EOF'".

How do I print? If I wanted to test things out by printing out values, does Delve not support that?

In debug console type foo (without po prefix)

近期文章

  • 在插入或更新中返回数据时,我仍然需要使用`Exec`吗?
  • axios.post请求获取404
  • 请求表返回零
  • AT命令与/ dev / tty *交换
  • 自定义HTTP标头打破了CORS
  • 如何编写golang验证功能,以便客户端能够优雅地处理?
  • 如何编辑埋在递归结构中的数组
  • 解码base64并将其编码为十六进制
  • 接受tcp [::]:accept4:打开的文件过多; 1s重试
  • Golang使用反射一一改变结构的字段
  • Golang从所有数组中存在的值创建数组
  • 如何使用golang运行.msi文件?
  • 求助:即使设置环境路径也找不到GOPATH
  • 使用旧版本的子程序包运行
  • GRPC:何时获得新客户?
  • 如何使用Sarama Go Kafka Consumer从最新的抵消量消耗?
  • 使用Go模块时生成回购原型的最佳实践
  • 通过.net MVC调用Go命令
  • Circleci和GoBuffalo挑战
  • 在Gin Framework中开发的REST API的文件夹结构和包命名约定

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华