CDumpContext::SetDepth

设置转储的深度。

void SetDepth( 
   int nNewDepth  
);

参数

  • nNewDepth
    新的深度值。

备注

如果转储不包含指向其他对象的基元类型或简单 CObject,则值0是不够的。 大于0的值指定任何对象以递归方式转储deep dark转储。 例如,集合的深的转储将转储集合的所有元素。 您的派生类可以使用其他特定深度值。

备注

循环deep的转储引用不会检测,并可能导致无限循环。

示例

#if _DEBUG
   afxDump.SetDepth(1);  // Specifies deep dump
   ASSERT(afxDump.GetDepth() == 1);      
#endif

要求

Header: afx.h

请参见

参考

CDumpContext Class

层次结构图

CObject::Dump