Highlighted

Tracing ColdFusion includes

New Here ,
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

161

Likes

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

Tracing ColdFusion includes

New Here ,
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

162

Likes

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
Aug 30, 2016 0
LEGEND ,
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,

^_^

Likes

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
Reply
Loading...
Aug 30, 2016 0
Most Valuable Participant ,
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.

Likes

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
Reply
Loading...
Sep 03, 2016 0
Adobe Community Professional ,
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.

Likes

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
Reply
Loading...
Sep 03, 2016 0
New Here ,
Sep 04, 2016

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Sep 04, 2016 0