• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Tracing ColdFusion includes

Guest
Aug 30, 2016 Aug 30, 2016

Copy link to clipboard

Copied

Hi there,

Is there a way of being able to output all the include files use in a web page?

I am debugging someone else's code and they have used multiple includes and sub includes and it would be really handy to see all the includes that were used?

Thanks,

Andrew

Views

261

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 30, 2016 Aug 30, 2016

Copy link to clipboard

Copied

I don't know of any way to get a comprehensive list of included files in any CFM document.  However, if you have robust error reporting turned on in CFAdmin, you should get the exact line number of specifically which document caused any errors.

If this isn't enough, you can place code (including included files) within CFTRY/CFCATCH, and use CFDUMP to display the #cfcatch# which should give you all the information you need to troubleshoot any issues.

HTH,

^_^

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 03, 2016 Sep 03, 2016

Copy link to clipboard

Copied

If you turn on Enable Request Debugging Output, it will list every file processed during the request (including components and includes), as well as how long it takes to process each one.  However, you should only turn this feature (or Robust Exception Handling) on in a development environment, as it will reveal internal information about your application.

-Carl V.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 03, 2016 Sep 03, 2016

Copy link to clipboard

Copied

Most editors, such as Eclipse, enable you to search within a directory or file. Just search for the cfinclude tag. It may help to use regular expressions.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 04, 2016 Sep 04, 2016

Copy link to clipboard

Copied

LATEST

Just install CFEclipse on either Aptana or Eclipse then look at all your Outlines or Methods.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation