Solved

Coldfusion Debug

Posted on 2014-11-06
4
132 Views
Last Modified: 2014-11-29
I am using CF9 and I am wondering what I need to do to be able to get the same error messages on the webpage
as I get in the app log. When there is a major error in syntax or sql it just shows me that the page cant be displayed
and I can get the error in the app log file like

Error Executing Database Query.[Macromedia][SQLServer JDBC Driver][SQLServer]Violation of PRIMARY KEY constraint 'PK_tbl_CNR_D'. Cannot insert duplicate key in object 'dbo.tbl_CNR_D'. The duplicate key value is (C2491035056, 01, 1428310095, ). The specific sequence of files included or processed is: C:\inetpub\wwwroot\parse.cfm, line: 452

normally it would be ok, but since I am developing and there is a lot of issues with parsing texts etc, there is a ton of errors and its a headache to go forth and back between applog to read the error. I enabled debug output but that doesn't show these errors

thanks
0
Comment
Question by:AlexPonnath
4 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 40427085
What you are asking for is set by the CF9 Administrator panels under the Debug Settings panel:
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0d04c-7ffe.html

Especially look for the option: Enable Robust Exception Information
0
 

Author Comment

by:AlexPonnath
ID: 40434280
I did that and for some reason I only get the error
Detail if I execute the page on my server. If I call same
Page on my workstation I always get a 500
Error.
If the page executes correctly I get all the debug
Like time to execute , variables and awl calls etc. so
I know my workstation ip is in the the list of
Debug hosts.
Not sure what I am missing
0
 
LVL 4

Expert Comment

by:onlyamir007
ID: 40461109
while you were enabling debuging on the server. did u give workstation IP to allow show the error?
0
 
LVL 1

Accepted Solution

by:
bjmurray earned 500 total points
ID: 40469873
As you have not given any details RE your setup I will add a sidenote :

If your using IIS with ColdFusion you need to enable detailed error pages within IIS as whenever ColdFusion returns a HTTP 500 IIS will intercept it and display a generic HTTP 500 error with no details. Probably best this is turned back off POST development.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now