Debugging In Flex Nick Kwiatkowski. Debugging Overview Debugging your applications helps you as a developer create smooth running applications Not just.

Slides:



Advertisements
Similar presentations
ACT! “Web” Plugins ACC Webinar (Part 1of 2) Brian Mowka and Jamie Aurand December 2010.
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Optimizing Windows There are several ways to optimize (perform regular maintenance) Windows to keep it performing smoothly and quickly. Most of these discussed.
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
MC365 Ant. Today We Will Cover: Overview of Ant Installing Ant Using the Ant command line tool Various Ant commands available Using Ant in Eclipse.
1 Lab Session-II CSIT 121 Fall 2000 Visual Studio Introduction Lab-1 Explanation and Demos Debugging Tips How to add new files to your projects How many.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
1 Lab Session-2 CSIT 121 Spring 2005 Debugging Tips NiMo’s Varying Rates Lab-2 Exercise.
Putting Your PowerPoint into WebCT. To put your PowerPoint online Create an appropriate folder Upload the PowerPoint file to that folder Create a link.
Installing geant4 v9.5 using Windows Daniel Brandt, 06 April 2012 Installing Geant4 v9.5 for Windows A step-by-step guide for Windows XP/Vista/7 using.
JavaScript Development Tools Front-End Development.
Introduction To C++ Programming 1.0 Basic C++ Program Structure 2.0 Program Control 3.0 Array And Structures 4.0 Function 5.0 Pointer 6.0 Secure Programming.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Installing Ricoh Driver. Items you need to know IP address of Printer Options that are installed And Paper Sizes To get all this information you can print.
ProSense BELGRADE Deploying SunSPOT SDK and Emulator on your Desktop or Laptop Computer Author: Stanislava Stanković, B.Sc. student of the School of Electrical.
Unit Testing & Defensive Programming. F-22 Raptor Fighter.
Installing and Configuring Tomcat A quick guide to getting things set up on Windows.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Thrive Installation.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
Copyright 2000 eMation SECURITY - Controlling Data Access with
IT 211 Project Integration and Deployment Lab #11.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Drexel University Software Engineering Research Group 1 Eclipse for SE101.
Your First Flex Application Nick Kwiatkowski 1/11/07.
Flex Data Communications Nick Kwiatkowski, Michigan State University.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Active-HDL Interfaces Debugging C Code Course 10.
Unit 1: Java and Eclipse The Eclipse Development Environment.
Creating and running a Java program. Eclipse Interactive Development Environment (IDE)  Eclipse is an Interactive Development Environment (IDE) for Java.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Website Editing From Gingerweb The Image Gallery.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
CSE 232: C++ Programming in Visual Studio Graphical Development Environments for C++ Eclipse –Widely available open-source debugging environment Available.
ISled V2 Captuvo Emulator Controller User Guide E Suzhou,HSM 9/6/2013.
What is Programming? Computer programming is about telling the computer what it is we want it to do We tell the computer what we want it to do by sending.
CS320n –Visual Programming More LabVIEW Foundations.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
Debugging Ensemble Productions CAMTA Meeting 11 th November 2010 John Murray.
C++ LANGUAGE TUTORIAL LESSON 1 –WRITING YOUR FIRST PROGRAM.
David Streader Computer Science Victoria University of Wellington Copyright: David Streader, Victoria University of Wellington Debugging COMP T1.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
Field Trip #24 Setting Up a Web Server. Apache Apache is one of the most successful open source web servers In 1995 the most popular web server was the.
Introduction to Eclipse Programming with an Integrated Development Environment.
Open project in Microsoft Visual Studio → build program in “Release” mode.
PHP Form Processing * referenced from
GDT Tips and Tricks. GDT Tips and Tricks Doug Evans GDT 2004 International User Conference – Evolving the Legacy July  Tucson, Arizona GDT Tips.
Software Design– Unit Testing SIMPLE PRIMER ON Junit Junit is a free simple library that is added to Eclipse to all automated unit tests. The first step,
Defensive Programming. Good programming practices that protect you from your own programming mistakes, as well as those of others – Assertions – Parameter.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
Today protected access modifier Using the debugger in Eclipse JUnit testing TDD Winter 2016CMPE212 - Prof. McLeod1.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.
Java IDE Dwight Deugo Nesa Matic
1 Adding a Model. We have created an MVC web app project Added a controller class. Added a view class. Next we will add some classes for managing movies.
DEVRY CIS 170 C I L AB 1 OF 7 G ETTING S TARTED Check this A+ tutorial guideline at
Labs: Create, deploy and test a simple web service
Programming and Debugging with the Dragon and JTAG
ATS Application Programming: Java Programming
Using the HTML and CSS Validation Services
Download TPL.zip to some directory
Some Tips for Using Eclipse
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Selenium IDE Installation and Use.
Presentation transcript:

Debugging In Flex Nick Kwiatkowski

Debugging Overview Debugging your applications helps you as a developer create smooth running applications Not just in the development cycle –Development Debugging –Runtime Debugging –Network Debugging

Development Debugging Make sure your application compiles! Tools: Flex Builder or Flex SDK Learn what the errors mean when you compile –Did you misspell a tag or function name –Capitalization of variables

Development Debugging Unit Testing: Testing all the possible inputs into a component or function to find out how it reacts Requirements: You need to have a descent contract (known inputs / outputs / expected function) in order to Unit Test. Unit testing also makes you compile and test your code more often. Build cases where the function should and should not work.

Development Debugging "It's about figuring out what you are trying to do before you run off half-cocked to try to do it. You write a specification that nails down a small aspect of behaviour in a concise, unambiguous, and executable form. It's that simple. Does that mean you write tests? No. It means you write specifications of what your code will have to do. It means you specify the behaviour of your code ahead of time. But not far ahead of time. In fact, just before you write the code is best because that's when you have as much information at hand as you will up to that point. Like well done Unit Testing, you work in tiny increments... specifying one small aspect of behaviour at a time, then implementing it." – Dave Astels

Development Debugging The Test-Code-Simplify cycle (Quoted verbatim from "Extreme Programming Applied", p159): –Write a single test –Compile it. It shouldn't compile, because you haven't written the implementation code it calls –Implement just enough code to get the test to compile –Run the test and see it fail –Implement just enough code to get the test to pass –Run the test and see it pass –Refactor for clarity and "once and only once" –Repeat

Flex Unit Testing Installing FlexUnit is pretty straight forward. You get the Flex Unit source files, set up a Flex project, and in the process, you specify that the project should use the flexunit.swc file: Get the flexunit.zip archive (from Adobe DevNet) and extract it to your hard drive. I created a new folder on my C drive called FlexDev and extracted it there, so the path on my machine is C:\FlexDev. Once extracted, FlexDev will contain a folder called flexunit, which in turn contains further sub folders (bin, docs and src folders). Create the Flex Project. Open up FlexBuilder 2 and create a new Flex project using: File > New > Flex Project.

Flex Unit Testing Choose a Basic Service (in other words, not Data Services) and press Next. Give your project a name of 'TDD Example', deselect the Use default location option, and browse to the same location as before (on my machine this is the C:\FlexDev folder). This is the location where you are going to set up your project. Click Next. (If you pressed Finish by mistake, skip to the end of this list). Select the Library Path tab, click the Add SWC… button and browse to the SWC file, which is in the bin folder of flexunit (using my set-up, the path is C:\FlexDev\flexunit\bin\flexunit.swc). Press Finish button and you're done.

Runtime Debugging Runtime debugging is when you are attempting to find what is wrong / what is happening during the execution of your app. Tools : Flex Builder

Runtime Debugging The easiest way to get into runtime debugging is to set Breakpoints within your own code. Check out the Variables tab in the Flex Debug Perspective

Runtime Debugging

Network Debugging Network debugging consists of seeing what is happening over the wire Great to see what RAW data is being sent from your back-end server to your flex application 2 flavors –AMF / Web services Proxy –Ethereal Trace

Network Debugging AMF / Web Services Proxy –Useful to see how structures / objects are being sent from the server to you –Tools : ServiceCapture from Kevin Langdon –How it works : Changes your browser default proxy to its own service while it is running. Shows you ALL requests the browser is making Can open up Web Service, XML, AMF, JSON packets

Network Debugging

Network Debugging If you don’t know what to blame – your server or your browser, or you are trying to work with real-time data (such as RTMP or Telnet), Wireshark is your best bet! Can’t decipher AMF packets, but it can identify when you get them. Dosen’t act as a proxy, simply shows EVERYTHIGN going into your network card

Network Debugging

Questions?