# debug.Dump
> 以字符串形式返回对象转储。
- 官方英文原文：https://gohugo.io/functions/debug/dump/
- 本页规范地址：https://hugozh.cn/functions/debug/dump/
- 最近更新：2026-10-02
- 最后提交：912b1d3 chore(site): 添加 static/CNAME（hugozh.cn），供 GitHub Pages 等平台绑定自定义域名
- 签名：debug.Dump VALUE
- 返回类型：string
- 站点：Hugo 中文文档（https://hugozh.cn/）· 社区维护的非官方中文翻译，如有出入以官方英文原文为准

---
```go-html-template
<pre>{{ debug.Dump hugo.Data.books }}</pre>
```

```json
[
  {
    "author": "Victor Hugo",
    "rating": 4,
    "title": "The Hunchback of Notre Dame"
  },
  {
    "author": "Victor Hugo",
    "rating": 5,
    "title": "Les Misérables"
  }
]
```

> [!NOTE]
> 该函数的输出可能随版本变化。仅用于调试。

