[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • Last Modified:

ColdFusion 8 dubug output to browser text overlapping, jumbled

My first line or two of the coldfusion 8 error output to the browser is jumbled, difficult to read. I've tried different computers, different browsers, and changed all settings in cfadmin I can think of but can't find one which will fix this.

See my attached screenshot for the problem. Screenshot of jumblied debug error output to browser
0
Qsorb
Asked:
Qsorb
  • 2
1 Solution
 
Brijesh ChauhanStaff IT EngineerCommented:
Use Firebug on FF to check it out, there is some CSS of your code that is mixing up with the cfdebug CSS..

0
 
QsorbAuthor Commented:
CSS hey? Okay, thanks. I'll check it out.
0
 
Brijesh ChauhanStaff IT EngineerCommented:
any body tags affects the cfdebug as well... as it is just HTML with it's own formatting.

You can also use <cftry> <cfcatch> blocks and then output the errors that are caught...

<cftry>

<cfcatch type="any">
  <cfoutput>#cfcatch.detail# - #cfcatch.message# </cfoutput>
</cfcatch>
</cftry>

For database exceptions you can use


<cftry>
YOUR CODE HERE
<cfcatch type="database">
  <cfoutput>
              #cfcatch.message# - #cfcatch.NativeErrorCode# - #cfcatch.SQLState# - #cfcatch.Sql# - #cfcatch.queryError# </cfoutput>
</cfcatch>
</cftry>


0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now