Dynamic Debug Output and Error Handling in CF5 and CFMX November 12, 2002 By Douglas M. Smith Application Architect for Teratech, Inc.

Slides:



Advertisements
Similar presentations
MFA for Business Banking – Security Code Multifactor Authentication: Quick Tip Sheets Note to Financial Institutions: We are providing these QT sheets.
Advertisements

Using NIMAC 2.0: The Accessible Media Producer Portal NIMAC 2.0 for AMPs.
Presentation Prepared For:. Secure user Login provides access to specific ship-to addresses, customer catalog, order processing rules, and other account-based.
Overview and Demonstration of declarative workflows in SharePoint using Microsoft SharePoint Designer 2007 Kevin Hughes MCT, MCITP, MCSA, MCTS, MCP, Network+,
© 2012 Entrinsik, Inc. Informer Administration Exploring the system menu and functions PRESENTER: Jason Vorenkamp| Informer Software Engineer| March 2012.
Detecting Bugs Using Assertions Ben Scribner. Defining the Problem  Bugs exist  Unexpected errors happen Hardware failures Loss of data Data may exist.
M2 – Explain the tools and techniques used in the creation of an interactive website. By Arturas Vitkovskij.
Error Handling With Fusebox Presentation By Eron Cohen.
© 2005 Wellesley Information Services. All rights reserved. Error Handling in LotusScript Agents Chuck Connell CHC-3 Consulting.
Error Trapping Part II Runtime Errors Error Handling Conclusion Questions Syntax Errors Error Categories Logic Errors Debugging Tools The Err Object Error.
TEA/TUG + ALDOT(Mobile) = H(O+I) The TEA/TUG being hosted by ALDOT in Mobile causes Hurricanes to come to Alabama. The TEA/TUG being hosted by ALDOT in.
CPSC150 Fall 2008 Dr. L. Lambert. CPSC150 Overview Syllabus Use Textbook, ask questions, extra thorough, I will post sections covered All information.
BY: ALBERTO CABEZAS 4/19/2010. INTRODUCTION: PHP is considered today as one of the most famous scripting languages. PHP is widely used as a general purpose.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Server-Side vs. Client-Side Scripting Languages
DT211/3 Internet Application Development JSP: Processing User input.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
18-Jun-15 JSP Java Server Pages Reference: Tutorial/Servlet-Tutorial-JSP.html.
DT228/3 Web Development JSP: Directives and Scripting elements.
JavaServer Pages TM Introduce by
Education Google Calendar (GCal) English. Education Upon completion of this course, you will be able to:  Navigate the GCal interface  Search your calendar.
A walkthrough of the SageQuest Mobile Control Online & ESC integration.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
E-Commerce Solutions. What is e-Commerce  Simply put, e-commerce is the online transaction of business, featuring linked computer systems of the vendor,
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
Map Reduce: Simplified Data Processing On Large Clusters Jeffery Dean and Sanjay Ghemawat (Google Inc.) OSDI 2004 (Operating Systems Design and Implementation)
The Art of Debugging Shlomy Gantz 02/13/01MDCFUG.
Exception Handling MDCFUG 6/12/2007 David Lakein Programmer / Analyst TeraTech Inc.
SqlReports Dean Dahlvang PSUG-MO March About Dean Dean Dahlvang Director of Administrative Technology for the Proctor.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
© 2010 MediaMind Technologies Inc. | All rights reserved Trafficking Media Plan, Ad Attachments & URL Assignments.
Lesson 19. JavaScript errors Since JavaScript is an interpreted language, syntax errors will usually cause the script to fail. Both browsers will provide.
Enrolment Services – Class Scheduling Fall 2014 Course Combinations.
© IGD 2011 For subscribers who usually log in via a company intranet link.
Lesson13. JavaScript JavaScript is an interpreted language, designed to function within a web browser. It can also be used on the server.
JAVA SERVER PAGES. 2 SERVLETS The purpose of a servlet is to create a Web page in response to a client request Servlets are written in Java, with a little.
Go to your school’s web locker site school name.schoolweblockers.com) Your user name is the first letter of your first name, the first four.
CMPS 211 JavaScript Topic 1 JavaScript Syntax. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Farcry Not just a game anymore…. What is Farcry?  Farcry is a Content Management System (CMS)  It is designed to separate the jobs of site creation/design.
The Pencil Company Team Slave to the WWW. Team Members  Ashley Petrinec – Co-lead of documentation and design  Jennifer Williams – Co-lead of documentation.
ColdFusion Security Michael Smith President TeraTech, Inc ColdFusion, Database & VB custom development
Introduction to Exception Handling and Defensive Programming.
Advanced ColdFusion: Error Handling Mosh Teitelbaum evoch, LLC.
Application.cfm tips and Tricks Michael Smith President TeraTech, Inc ColdFusion, database & VB custom development and training.
CF Pest Control By Shlomy Gantz President, BlueBrick Inc. Presented by Sandra Clark
RateMyService: Lessons SANS group Milestone 2. Status Report Currently, users to our site can: Search on our site, either by browsing or by using the.
Web Application Security Raymond Camden
Java server pages. A JSP file basically contains HTML, but with embedded JSP tags with snippets of Java code inside them. A JSP file basically contains.
Go to your school’s web locker site Your user name is the first letter of your first name, the first four letters of.
FT228/3 Web Development Error processing. Introduction READ Chapter 9 of Java Server Pages from O’reilly 2 nd Edition Need to be able to 1) Diagnose and.
Introduction To JavaScript. Putting it Together (page 11) All javascript must go in-between the script tags. All javascript must go in-between the script.
PHP Error Handling & Reporting. Error Handling Never allow a default error message or error number returned by the mysql_error() and mysql_errno() functions.
COMP3241 E-Commerce Technologies Richard Henson University of Worcester November 2014.
Method Overriding Remember inheritance: when a child class inherits methods, variables, etc from a parent class. Example: public class Dictionary extends.
Writing secure Flex applications  MXML tags with security restrictions  Disabling viewSourceURL  Remove sensitive information from SWF files  Input.
JSP in Action. JSP Standard Actions forward, include, useBean, setProperty, getProperty, text, element, and plugin Additional actions param, params,
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Yahoo Help Phone Number Get Instant Help.
Error Handling Michael Smith President TeraTech, Inc ColdFusion, Database & VB custom development
Cool CF Debugging Shlomy Gantz 07/29/01CF_ODYSSEY.
A first stab at a better templating system for Chisimba The Chisimba Canvas.
CMon Application Monitor & Exception Manager. If I use CMon what benefits do I get? You can fix the application bugs easily. Fixing the errors in a short.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
We as a whole know the enchantment traps, and we as a whole know the cool little capacities. We as a whole know the best approach to influence dates to.
SharePoint-Hosted Apps and JavaScript
Nate Nelson I*LEVEL, Inc.
This presentation uses a free template provided by FPPT.com Hotmail Help Contact Number USA
This presentation uses a free template provided by FPPT.com Hotmail Help Contact Number USA
Presentation transcript:

Dynamic Debug Output and Error Handling in CF5 and CFMX November 12, 2002 By Douglas M. Smith Application Architect for Teratech, Inc.

Reasons for this Presentation  I wanted to see the web site exactly as the client would see it, yet at the same time, I wanted developer’s to see debug and error output.  I wanted to allow developers to view debug and error info, but hide it from regular users.  I wanted to embed custom debug output in my code during development, and keep it available for later testing and bug fixing, without having to comment code in and out.  I wanted a mechanism to turn dynamically turn on/off the standard CF debug output display (at the bottom of each page)  For security reasons, I only wanted the developer to be able to see or turn on error or debug output.

Code in Application.cfm  Sets variables that are used in and error handling templates  Sets variables that are used to control access to debug output. Basically, these are lists of IP addresses, similar to how the CF Admin controls access to debug output.  Has code to set CLIENT.DEBUG variable, which is the main switch variable.  Sets the template.

Code in OnRequestEnd.cfm  Code to turn on/off standard CF debug output  Code to turn on/off custom debug output  In CF5, use MOD_DISPLAY_VARIABLES.cfm  In CFMX, don’t need this. Can use settings in CFADMIN, or just use CFDUMP

Code in Template Usage:  Code to any error to web master  Code to turn off , and display error, if desired by developer  In CFMX, code to display error context

Custom Debug Output Code Put code like this this wherever you want custom debug output: Your custom debug output.

Code in Template Usage:  Very similar to CFERROR  Code to any error to web master  Code to turn off , and display error, if desired by developer  In CFMX, code to display error context

“Gotchas”  Code in Application.cfm before the statement is not caught by anything, so make sure it is bug-free.  Error handlers must be tested and be error free before they will work. This is especially important in CFMX.  If there is an error in the error_handler, you won’t get your . Generate an error using to make sure you are getting your error s.

More “Gotchas”  Compilation errors in normal code are not caught by CFERROR handler. These are displayed to standard error output. Only runtime errors are caught.  Compilation errors in CFERROR handler itself under CFMX are not reported at all! It simply appears like the tag does not work. You will get default debug output to the screen, and you will loose error handling benefits.

New Features in CFMX  is awesome!  TagContext is now available in as well as in CFCATCH  Standard debug output has actual line numbers, and error in bold. Cool, but feature is lost when using error or cfcatch variables!

Questions?

Contact Info Douglas M. Smith Download this presentation from: