Capturing Debugging Data

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  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. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Capturing Debugging Data

    with the cferror tag ?
    Cubensis Guest

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

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

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

Posting Permissions

  • You may not post new threads
  • You may 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