当我们转储 ORM 实体时,是否可以限制 cfdump 的大小?似乎 cfdump 将尝试加载和显示与被转储的实体相关/关联的所有实体(如多对一或一对多关系中所定义)。有时,转储单个实体可能会导致输出超过 100 mb(即兆字节)。
最佳答案
根据documentation ,看来您要找的是 top
范围。
<cfdump
var = "#variable#"
output = "browser|console|file"
format = "text|html"
abort = "true|false">
label = "text"
metainfo = "yes|no"
top = "number of rows|number of levels"
show = "columns|keys"
hide = "columns|keys"
keys = "number of keys to display for structures"
expand = "yes|no"
showUDFs = "yes|no">
top Optional 9999 The number of rows to display. For a structure, this is the number of nested levels to display.
我已经很久没有使用 CFM 了,但您可能也对
keys
感兴趣keys Optional 9999 For a structure, the number of keys to display.
关于coldfusion - 如何限制实体的 cfdump 大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45271968/