I often have structures and objects that are self-referential so that they
go into an infinite loop when you try to dump them. It makes sense to create
data structures like this sometimes, for example in linked lists, or if you
have a tree where each child points back to its parent.

Would be nice to have a dump that could deal with this somehow.

Here's a good example of an undumpable data structure:

<cfset firstPerson                                   = structNew()>

<cfset firstPerson.name              = "Mary Wollstonecraft">

<cfset secondPerson                             = structNew()>

<cfset secondPerson.name        = "Mary Shelley">

<cfset secondPerson                             = structNew()>

<cfset secondPerson.name        = "Mary Shelley">

<cfset firstPerson.child   = secondPerson>

<cfset secondPerson.parent       = firstPerson>

<cfdump var="#firstPerson#">



-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 22 October 2003 9:03 a.m.
To: CF-Talk
Subject: RE: <CFDUMP> hanging the server.

You may want to try limiting the amount of data you dump. On my blog I
posted a modified version of <cfdump> that allows you to do stuff like

top=X

where the dump will only show the first X records (or rows in an array,
or keys in a struct)

As well as other filtering options.


  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to