Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Sarah DeShazo #1
Capturing Debugging Data
Does anyone know of a way to capture debugging information? I need to be able to manipulate this data in my code. Any help would be greatly appreciated.
Thanks,
Sarah
Sarah DeShazo Guest
-
capturing scrolling data in fillable pdf
MAC OX 10.3.9 and using Quark 6.5 to create files. Making fillable pdfs in Acrobat 6.0.1 Users have Reader only. Accesses the pdf from our... -
Debugging output does not appear when use Debugging IPAddresses
I recently absorbed the task of supporting our CF MX 6.1 server. We have an app that we need to debug - the developer asked us to add her IP... -
Capturing data from page and displying it in another
Hi there, I'm building a site that will basically contain loads of articles for people read. Now I'm in a bit of a fix. I'd like readers to just... -
Capturing Data of Dynamically Created TextBox's
Hi there, I am dynamically created a table at runtime on an aspx form. The last cell of each row contains a TextBox in which the user will enter... -
capturing streaming market data
There is a module Finance::Streamer that captures realtime stock market data from Datek (now Ameritrade). Does anyone know of similar code that... -
-
Cubensis #3
Re: Capturing Debugging Data
or to capture a cfdump you can use a cfhttp request from another cfm page to that page and retrieve the debugging info from the html that is returned and present in "cfhttp.fileContent".
Cubensis Guest
-
Sarah DeShazo #4
Re: Capturing Debugging Data
The problem with <cfdump>, is that it is rarely used in a production
environment. We wouldn't want the users to see the contents of the <cfdump>.
This is what we are trying to do. On a particular page, we need to somehow save
all of the queries that ran. I was thinking if there was some way to capture
the debugging data...then we could go from there. B/c debugging data contains
all of the queries that ran on the page.
Sarah DeShazo Guest
-
Cubensis #5
Re: Capturing Debugging Data
just place a cfsavecontent with the same code in it as the code between cfquery.
so it might look like this:
<cfset theDebugInfo = "">
...
<cfset timeStart = GetTickCount()>
<cfquery ...>
bla bla q1
</cfquery>
<cfset timeEnd = GetTickCount()>
<cfsavecontent variable="temp">
bla bla q1
</cfsavecontent>
<cfset theDebugInfo = theDebugInfo & temp & "<br/>Time to run query" &
evaluate(timeEnd-timeStart) & "<br/><br/>">
...
except for the first line where you set the 'theDebugInfo" you can repeat this
for every query.
This way you get the info you need in a variable witch you can save in a file
at the end of your page.
If you do it like this you can also switch of debuging mode on your production
server, which is the better thing to do.
Cubensis Guest



Reply With Quote

