Solved

Coldfusion Debug

Posted on 2014-11-06
4
138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

623 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