Skip to main content
Inspiring
June 27, 2006
Question

How to find a line number when using cfinclue

  • June 27, 2006
  • 1 reply
  • 391 views
Hi, I have a cfset causing an error on line 143 the problem is that the index.com is made of includes, how do I find which include CFSET is causing the error (the error code doesn't include the text that is making up the error.... only says coldfusion was looking at http - which I have in many places...) dreamweaver isn't including the documents to look up their code either....

Thanks
    This topic has been closed for replies.

    1 reply

    Inspiring
    June 27, 2006
    Turn on Robust error reporting - it should tell you the exact template that caused the issue

    Inspiring
    June 27, 2006
    Hi, the code seems to run fine on my local server, it sometimes generates errors on the host server and I'm looking at their logs. I guess it has to do with what record it is calling because I don't see the error when I test it. therefore I have to go by the logs....
    BKBK
    Community Expert
    Community Expert
    June 27, 2006
    Sometimes it's quicker to just do the dumb thing. Number of lines before first include + number of lines in first include + number of lines between first include and second include + number of lines in second include + ... till you get to around 147. I say "around" because you only have to know you're, say, between lines 140 and 155. Your error message should give you a clue which line is the likely culprit.