如何限制实体的 cfdump 大小

How to limit size of cfdump for entities

当我们转储 ORM 实体时,是否可以限制 cfdump 的大小?似乎 cfdump 将尝试将所有实体 related/associated 加载并显示到(如在多对一或一对多关系中定义的那样)被转储的实体。有时转储一个实体会导致输出超过 100mb(即兆字节)。

根据 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.