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

Tracing ColdFusion includes

Guest
Aug 30, 2016 Aug 30, 2016

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

378
Translate
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

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,

^_^

Translate
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

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.

Translate
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

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.

Translate
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
LATEST

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

Translate
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