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

Coldfusion 9: How to turn on debugging

Explorer ,
Oct 10, 2012 Oct 10, 2012

Hi All,

We have recently migrated to Coldfusion 9 from Coldfusion 8 and I am struggling to turn on debugging on the coldfusion adminstrator.  Can anyone help with how to turn this function on please?

I have specifically thrown an error in one of my systems and all I am seeing on the web page is the following error.

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

If however, I run the website locally on the server...  I get the following error, which is what I want to display when I am not running it locally.

The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.

 

The following information is meant for the website developer for debugging purposes.

 

Error Occurred While Processing Request

A tag starting with 'CF' has been detected. This tag is not supported by this version of ColdFusion. Please verify your typo and try again.

Unknown tag: cfsef.

ColdFusion cannot determine how to process the tag cfsef because the tag is unknown and is not in any imported tag libraries. The tag name might be misspelled.

Resources:

Check the ColdFusion documentation to verify that you are using the correct syntax.

Search the Knowledge Base to find a solution to your problem.

Browser

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

Remote Address

::1

Referrer

Date/Time

10-Oct-12 11:11 AM

5.4K
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
Explorer ,
Oct 10, 2012 Oct 10, 2012

P.s

I have enabled the following in the coldfusion adminstrator, and it still doesn't show the debugging detailed error.

Enable Robust Exception Information

Allow Line Debugging

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 ,
Oct 10, 2012 Oct 10, 2012

It's not "Allow Line Debugging" you want:t hat enables the line debugger.  You want "".

Plus you might need to check which IP addresses it's enabling debug for.

--

Adam

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
Explorer ,
Oct 10, 2012 Oct 10, 2012

Thank you for your response Adam.

I have just checked and "Enable Request Debugging Output" is checked.

In the "Debugging & Logging > Debugging IP Addresses" section I have the following IP address in there (exactly as my CF8 setup was, which showed me the output)

127.0.0.1

0:0:0:0:0:0:0:1

Do I need to put the IP address of the server in there to make it work?

Sorry, bit confused as never had to do this before.

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
Explorer ,
Oct 10, 2012 Oct 10, 2012

Still having issues with this, if anyone could help it would be much apprciated as this is driving me insane.

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 ,
Oct 10, 2012 Oct 10, 2012

It needs to be the IP address(es) of the machine's you're using to browse the site with.  EG: if you and "Bob" both work in the office and just you want to see the debugging and Bob doesn't, you add the IP address of your machine to that list.

Or you can simply get rid of everything from the list, and all machine's will see it.

--

Adam

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
Explorer ,
Oct 10, 2012 Oct 10, 2012

Ok so here is an update...

I have enabled the option "Enable Request Debugging Output" and removed all the IP addresses in the section "Debugging IP Addresses" and I am still not seeing the debug output on my page.  I also tried adding my own IP address in there and rebooting the machine to no avail.

I am still seeing the message....

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

But when I run it locally I am getting....

The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.

The following information is meant for the website developer for debugging purposes.

Error Occurred While Processing Request

A tag starting with 'CF' has been detected. This tag is not supported by this version of ColdFusion. Please verify your typo and try again.

Unknown tag: CFTHISDOESNOTWORK.

ColdFusion cannot determine how to process the tag CFTHISDOESNOTWORK because the tag is unknown and is not in any imported tag libraries. The tag name might be misspelled.

Resources:

Check the ColdFusion documentation to verify that you are using the correct syntax.

Search the Knowledge Base to find a solution to your problem.

Browser

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

Remote Address

::1

Referrer

Date/Time

10-Oct-12 02:27 PM

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 ,
Oct 21, 2012 Oct 21, 2012

Is this one of these things where the web browser has a setting to show "friendly" error screens, instead of just reporting back what the web server has told it?

I can recall encountering something like this in the past..?

If it's not that... I have no bloody clue!  Are you sure you're looking at the same CF server as that which you're making the settings changes to?

Do you have an onError() handler or <cferror> or global error handler in the mix?

--

Adam

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
Engaged ,
Oct 21, 2012 Oct 21, 2012
LATEST

Hi G and Adam,

This tripped me up too.  There's an IIS7+ setting at play.  The "Detailed errors" needs to be checked (to enable detailed errors for both local and remote requests).. Just follow the screenshots on this page: http://blogs.msdn.com/b/rakkimk/archive/2007/05/25/iis7-how-to-enable-the-detailed-error-messages-fo...

I don't think this ever made it into the CF docs, but prob should've.

HTH!,

-Aaron

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