Professional Web Applications Themes

Capturing Debugging Data - Coldfusion - Advanced Techniques

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

  1. #1

    Default 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

  2. #2

    Default Re: Capturing Debugging Data

    with the cferror tag ?
    Cubensis Guest

  3. #3

    Default 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

  4. #4

    Default 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

  5. #5

    Default 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

Similar Threads

  1. Capturing Data of Dynamically Created TextBox's
    By Jack Johnston in forum ASP.NET General
    Replies: 6
    Last Post: August 4th, 10:37 AM
  2. capturing scrolling data in fillable pdf
    By beachlover@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 3
    Last Post: January 23rd, 11:09 PM
  3. Debugging output does not appear when use Debugging IPAddresses
    By Schroeder2 in forum Coldfusion Server Administration
    Replies: 2
    Last Post: June 7th, 11:15 PM
  4. Capturing data from page and displying it in another
    By xantia7 in forum Macromedia ColdFusion
    Replies: 2
    Last Post: March 12th, 06:47 PM
  5. capturing streaming market data
    By Mark S. Warren in forum PERL Miscellaneous
    Replies: 0
    Last Post: June 25th, 03:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139