CF Pest Control By Shlomy Gantz President, BlueBrick Inc. Presented by Sandra Clark

Slides:



Advertisements
Similar presentations
Chapter 6 Server-side Programming: Java Servlets
Advertisements

EIONET Training Zope Page Templates Miruna Bădescu Finsiel Romania Copenhagen, 28 October 2003.
Introducing JavaScript
CF and JSP/Servlets Developed originally by Robi Sen For the CF UnderGround II Seminar, Apr 2001 Edited and enhanced by Charlie Arehart (Robi had an emergency.
Java Script Session1 INTRODUCTION.
JSP1 Java Server Pages (JSP) Introducing JavaServer Pages TM (JSP TM ) JSP scripting elements.
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Error Handling With Fusebox Presentation By Eron Cohen.
Week 5 IBS 520. ColdFusion Variables CF uses variables to store data in memory. There are many different types of variables; each has its own.
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
DT211/3 Internet Application Development
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
XP 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial 10.
DT228/3 Web Development JSP: Directives and Scripting elements.
JavaScript, Fourth Edition
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
JSP Architecture  JSP is a simple text file consisting of HTML or XML content along with JSP elements  JSP packages define the interface for the compiled.
Week 2 IBS 685. Project Site Upload assignments to your project site that you will create for IBS 685.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
Course Textbook: Build Your Own ASP.Net Website: Chapter 2
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
Javascript and the Web Whys and Hows of Javascript.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
4.1 JavaScript Introduction
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
ASP.NET Programming with C# and SQL Server First Edition Chapter 6 Debugging and Error Handling.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
The Art of Debugging Shlomy Gantz 02/13/01MDCFUG.
Exception Handling MDCFUG 6/12/2007 David Lakein Programmer / Analyst TeraTech Inc.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
What’s New in CF 8 Admin MDCFUG 8/14/2007 Ajay Sathuluri Sr. Web and Database Engineer TeraTech Inc.
Lesson 19. JavaScript errors Since JavaScript is an interpreted language, syntax errors will usually cause the script to fail. Both browsers will provide.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
ColdFusion 9 and Flex 4: Application Development Ryan Stewart Platform Evangelist, Adobe Systems
Introduction to ColdFusion Yu Fu 2003 MEC Candidate.
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
JSTL Lec Umair©2006, All rights reserved JSTL (ni) Acronym of  JavaServer Pages Standard Tag Library JSTL (like JSP) is a specification, not an.
EIW - ASP Introduction1 Active Server Pages VBScript.
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.
Dynamic Debug Output and Error Handling in CF5 and CFMX November 12, 2002 By Douglas M. Smith Application Architect for Teratech, Inc.
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.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
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.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
JS (Java Servlets). Internet evolution [1] The internet Internet started of as a static content dispersal and delivery mechanism, where files residing.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Web Browsing *TAKE NOTES*. Millions of people browse the Web every day for research, shopping, job duties and entertainment. Installing a web browser.
ASP.NET – Active Server Pages ASP.NET is a server-side technology for developing web applications based on the.NET Framework.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
JavaScript, Sixth Edition
Oracle Business Intelligence Foundation – Testing and Deploying OBI Repository.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Error Handling Michael Smith President TeraTech, Inc ColdFusion, Database & VB custom development
Cool CF Debugging Shlomy Gantz 07/29/01CF_ODYSSEY.
Debugging using By: Samuel Ashby. What is debugging?  A bug is an error in either a program or the hardware itself.  Debugging is first locating and.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
SQL Database Management
Running a Forms Developer Application
Nate Nelson I*LEVEL, Inc.
Web Application Development Using PHP
Presentation transcript:

CF Pest Control By Shlomy Gantz President, BlueBrick Inc. Presented by Sandra Clark

Famous Last words “…if debugging is defined as the art of taking bugs out of a program, programming must be putting them in…” “..It’s not a bug, It’s a feature “ Microsoft

Types of bugs Syntax Error Run-Time Errors Logical Errors

Types of bugs - Syntax Errors Syntax Error Example

Types of bugs - Run-Time Errors Run-Time Error Example SELECT SUM(Salary) AS TotalSalary, COUNT(Emp_ID) as NumOfEmployees FROM AnnualSalary WHERE SALARY > #AVGSalary#

Types of bugs - Logical Errors Logical Error example #YesNoFormat(ShlomyExists_YN)#

Other things that can go wrong Database connection (ODBC,MDAC …) Cold Fusion server Web Server OS Hardware

Debugging Steps Plan Back-up Isolate Find The error Fix - Don’t patch Look for similar Document

“Debugger’s Block” If all else fails … and if that doesn’t work

Cold Fusion Administrator

Enable CFML stack trace CF tracks what tags have run during page process. Can be used either through CFTRY/CFCATCH or the HomeSite+ Debugger

Report Execution Times

Show Variables Show all variables processed by ColdFusion: –Application –Cookie –Server –CGI –Form –Session –Client –Request –URL

Detail View Breakdown of all templates run during a page process. Processing time for each template

Database Activity Query Name RecordCount Processing Time Query Executed

Enable Performance Monitoring

Enable Robust Exception Information physical path of template URI of template line number and line snippet SQL statement used (if any) Data source name (if any) Java stack trace

Debugging IP Addresses By Default All when debugging is turned on all users can see debug information. You can restrict access to the debugging info through this feature by IP address

Log Files Easier Log File Administration

Log Files Easier Log Analysis

System Probes Monitor your ColdFusion Applications

Code Analyzer

Debugging with HomeSite+ Setting up Development Mapping.

Using the interactive debugger

Debugging CF applications Show your variables (not only once) Create breakpoints and Follow the flow Use Exception handling to automatically alert when errors occur Look at your application logs

& Using CFABORT to create breakpoints Select * from Contacts WHERE Active_YN=1 #getContacts.recordcount#

& Following the flow Step 1 Step 1.1 Step 1.2 Step 2

Debugging in CFML

Debugging CF applications

... Add code here... Add exception processing code here... Additional CFCATCH blocks go here

<cftrace abort = "Yes or No" category = "string" inline = "Yes or No" text = "string" type = "format" var = "variable_name" >

IsDebugMode() Debugging is set in the ColdFusion Administrator Debugging is disabled

Application Logs Read your application logs regularly Error","TID=199","07/27/00","13:32:35"," ","Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)","An error has occurred. HTTP/ Object Not Found“ "Error","TID=199","07/27/00","13:32:45"," ","Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)","Error resolving parameter SLOT_IDColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either: You have misspelled the parameter name, or You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag.The error occurred while evaluating the expression: #slot_id# The error occurred while processing an element with a general identifier of (#slot_id#), occupying document position (4:12) to (4:20) in the template file D:\wwwroot\cfun2000\Examples\JS\JSexample1_CFMW\edit_def.cfmThespecific sequence of files included or processed s:D:\WWWROOT\CFUN2000\EXAMPLES\JS\JSEXAMPLE1_CFMW\EDIT_DEF.CFM.Date/Time: 07/27/00 13:32:45Browser: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)Remote Address: HTTP Referer: D:\wwwroot\cfun2000\Examples\JS\JSexample1_CFMW\edit_def.cfm“ "Warning","TID=152","07/27/00","15:07:21","In a CF_TagName construct custom tag file 'C:\CFUSION\CustomTags\Pages.cfm' will occlude custom tag file 'C:\CFUSION\CustomTags\cf_pages\Pages.cfm'." "Warning","TID=152","07/27/00","15:07:21","In a CF_TagName construct custom tag file 'C:\CFUSION\CustomTags\Pages.cfm' will occlude custom tag file 'C:\CFUSION\CustomTags\cf_pages\images\Pages.cfm'."

CFDUMP Read your application logs regularly

Debugging Databases SQL query analyzer

Common Mistakes “So what are we doing wrong?”

Tools & Techniques Alerts Monitoring Tools ( ) Testing Tools ( ) BugTraq Automatic Code Generation Tools –CodeSaver / CodeCharge / CommerceBlocksCodeSaverCodeChargeCommerceBlocks LoRCAT

QA