User Guide Cancel

Debug mobile applications

  1. ColdFusion Developers Guide
  2. Develop ColdFusion applications
    1. Introducing ColdFusion
      1. Introducing ColdFusion
      2. About ColdFusion
      3. About Internet applications and web application servers
      4. About JEE and the ColdFusion architecture
    2. Changes in ColdFusion
      1. Changes in ColdFusion
      2. Replacement of JRun with Tomcat
      3. Security enhancements
      4. ColdFusion WebSocket
      5. Enhanced Java integration
      6. ColdFusion ORM search for indexing and search
      7. Solr enhancements
      8. Scheduler enhancements
      9. Integration with Microsoft Exchange Server 2010
      10. RESTful Web Services in ColdFusion
      11. Lazy loading across client and server in ColdFusion
      12. Web service enhancements
      13. Displaying geolocation
      14. Client-side charting
      15. Caching enhancements
      16. Server update using ColdFusion Administrator
      17. Secure Profile for ColdFusion Administrator
    3. Introduction to application development
      1. Introduction to application development using ColdFusion
      2. Using the Developing ColdFusion Applications guide
      3. About Adobe ColdFusion documentation for Developers
    4. The CFML programming language
      1. The CFML programming language
      2. Elements of CFML
      3. ColdFusion variables
      4. Expressions and number signs
      5. Arrays and structures
      6. Extend ColdFusion pages with CFML scripting
      7. Regular expressions in functions
      8. ColdFusion language enhancements
      9. Built-in functions as first class citizen
      10. Data types- Developing guide
    5. Building blocks of ColdFusion applications
      1. Building blocks of ColdFusion applications
      2. Create ColdFusion elements
      3. Write and call user-defined functions
      4. Build and use ColdFusion Components
      5. Create and use custom CFML tags
      6. Build custom CFXAPI tags
      7. Use the member functions
      8. Object Oriented Programming in ColdFusion
    6. Develop CFML applications
      1. Develop CFML applications
      2. Design and optimize a ColdFusion application
      3. Handle errors
      4. Use persistent data and locking
      5. Use ColdFusion threads
      6. Secure applications
      7. Client-side CFML (for mobile development)
      8. Use the ColdFusion debugger
      9. Debugging and Troubleshooting Applications
      10. Develop globalized applications
      11. REST enhancements in ColdFusion
      12. Authentication through OAuth
      13. Social enhancements
    7. Develop mobile applications
      1. Mobile application development
      2. Build mobile applications
      3. Debug mobile applications
      4. Inspect mobile applications
      5. Package mobile applications
      6. Troubleshoot mobile applications
      7. Device detection
      8. Client-side CFML
      9. Mobile Templates
      10. Code samples to build a mobile application
    8. Access and use data
      1. Access and use data
      2. Introduction to Databases and SQL
      3. Access and retrieve data
      4. Update database
      5. Use Query of Queries
      6. Manage LDAP directories
      7. Solr search support
    9. ColdFusion ORM
      1. ColdFusion ORM
      2. Introducing ColdFusion ORM
      3. ORM architecture
      4. Configure ORM
      5. Define ORM mapping
      6. Work with objects
      7. ORM session management
      8. Transaction and concurrency
      9. Use HQL queries
      10. Autogenerate database schema
      11. Support for multiple data sources for ORM
      12. ColdFusion ORM search
    10. ColdFusion and HTML5
      1. ColdFusion and HTML 5
      2. Use ColdFusion Web Sockets
      3. Media Player enhancements
      4. Client-side charting
      5. Display geolocation data
    11. Flex and AIR integration in ColdFusion
      1. Flex and AIR integration in ColdFusion
      2. Use the Flash Remoting Service
      3. Use Flash Remoting Update
      4. Offline AIR application support
      5. Proxy ActionScript classes for ColdFusion services
      6. Use LiveCycle Data Services ES assembler
      7. Use server-side ActionScript
    12. Request and present information
      1. Request and present information
      2. Retrieve and format data
      3. Build dynamic forms with cfform tags
      4. Validate data
      5. Create forms in Flash
      6. Create skinnable XML forms
      7. Use Ajax data and development features
      8. Use Ajax User Interface components and features
    13. Office file interoperability
      1. Office file interoperability
      2. Using cfdocument
      3. Using cfpresentation
      4. Using cfspreadsheet
      5. Supported Office conversion formats
      6. SharePoint integration
    14. ColdFusion portlets
      1. ColdFusion portlets
      2. Run a ColdFusion portlet on a JBoss portal server
      3. Run a ColdFusion portlet on a WebSphere portal server
      4. Common methods used in portlet.cfc
      5. ColdFusion portlet components
      6. Support for JSR-286
    15. Work with documents, charts, and reports
      1. Work with documents, charts, and reports
      2. Manipulate PDF forms in ColdFusion
      3. Assemble PDF documents
      4. Create and manipulate ColdFusion images
      5. Create charts and graphs
        1. About charts
        2. Creating a basic chart
        3. Charting data
        4. Controlling chart appearance
        5. Creating charts: examples
        6. Administering charts
        7. Writing a chart to a variable
        8. Linking charts to URLs
        9. Charting enhancements
      6. Create reports and documents for printing
      7. Create reports with Report Builder
        1. About Report Builder
        2. Common reporting tasks and techniques
        3. Creating a simple report
        4. Getting started
      8. Create slide presentations
    16. Use web elements and external objects
      1. Use web elements and external objects
      2. Use XML and WDDX
      3. Use web services
      4. Use ColdFusion web services
      5. Integrate JEE and Java elements in CFML applications
      6. Use Microsoft .NET assemblies
      7. Integrate COM and CORBA objects in CFML applications
    17. Use external resources
      1. Send and receive e-mail
      2. Interact with Microsoft Exchange servers
      3. Interact with remote servers
      4. Manage files on the server
      5. Use event gateways
      6. Create custom event gateways
      7. Use the ColdFusion extensions for Eclipse
      8. Use the data services messaging event gateway
      9. Use the data management event gateway
      10. Use the FMS event gateway
      11. Use the instant messaging event gateways
      12. Use the SMS event gateway

Adobe ColdFusion Builder is End of Life from Oct 1, 2024

Thank you for being part of the exciting journey of Adobe ColdFusion Builder.

As Adobe continues to focus on ColdFusion Builder extension for Visual Studio Code as the IDE for Adobe ColdFusion, we have decided to End of Life (EOL) Adobe ColdFusion Builder on Oct 1, 2024.

View the End of Life (EOL) announcement for ColdFusion Builder.

The ColdFusion Mobile Platform aims at providing a server and development infrastructure that facilitates rapid and robust mobile application development, debugging, packaging, and deployment. The ColdFusion 11 release introduced rapid application development through ColdFusion Builder. ColdFusion 11 introduces full-fledged on-device debugging to quickly debug your ColdFusion-based mobile applications on devices.

The ColdFusion Builder has introduced a new debug server (agent) that acts as a broker between the IDE and the device. There will be a two-way communication between the debug agent and the IDE.

The IDE provides the debugging information like breakpoints, step over, step in, step out, and resume to the debug agent. In return, the debug agent provides information like where the code has paused to the IDE so that the IDE can show the appropriate source file with the highlighted line. When the device starts executing the code, communicates with the debug agent to get information on when to stop.


There are different scenarios through which you can debug your applications. ColdFusion Builder supports both local and remote debugging.

  1. You can debug your application running on a browser.
  2. You can debug a PhoneGap application running on the device.
  3. You can debug a standalone HTML5-based mobile application running on the device.
  4. Many developers can connect to a remote ColdFusion Server and debug their projects.

In scenario 3, developers cannot debug the same ColdFusion mobile project simultaneously.

Debugging a packaged application

The new ColdFusion Builder enables you to run ColdFusion-based mobile applications interactively by inspecting the source code during the application execution. If you have already used Eclipse for debugging your applications, you will find debugging in ColdFusion builder easier.
While debugging your application on the browser or on a device, the following debug actions are supported:

  1. You can set breakpoints (you can set handles in your source code specifying where the execution of your application must stop)
  2. You can step in, step out, step over, and resume
  3. You can get variables while debugging
  4. You can set expressions while debugging

When your application completes loading/execution, you can investigate variables and change their content through a simple interface.

Verify the debug agent configuration

Before you start debugging your mobile application, verify the IP address and port of the Debug Agent. The IP address of the Debug Agent is most likely the IP address of your machine. These IP address and the port value will be automatically configured. To verify or change these values, click Windows > Preferences > ColdFusion > Client Debug Settings.

Setting breakpoints

To set breakpoints in your source code right-click in the small left margin in your source code editor and select Toggle Breakpoint. Alternatively, you can also double-click on this position to enable or disable breakpoints.

Note: that the breakpoints will not be hit for JavaScript code in your application.

Starting the debugger

You need to start the debugger to start debugging ColdFusion mobile applications. Perform the following tasks:

  • Before you begin, you need to generate the PhoneGap Debug Build if you are planning to debug your applications on the device. Right click your project and select Generate PhoneGap Debug Build. If you have not configured your PhoneGap settings, you will be prompted to enter the PhoneGap account settings.

 

  • Once you generate the PhoneGap build, you need to transfer the binary file to your device and install the application. For instance, on Android, you transfer the APK file to the device and install the APK file.
  • Start the debugger by clicking the Debug Icon on the menu and selecting Debug As > ColdFusion Client Applications
  •  

    • Depending on where you have set the breakpoint, your application may look blank when it starts on your device:

    • At this moment, you can see the control at the breakpoint position in ColdFusion Builder. Continue stepping over and debug your application.

    This action will start the device debugger. If you have not defined any breakpoints, this action will run your application normally. To debug the application, you need to define breakpoints.
    Note: If the code being executed on the browser or the shell application encounters a runtime error, you will see an error message and the debugger will fail to start.

    Viewing variables and evaluating expressions

    While the debugging session is on, you can view the variables and evaluate expressions easily. Ensure that you have activated the ColdFusion Debugging perspective:

    • Click Window > Open Perspective > Other.. and select ColdFusion Debugging:

    • Click OK to continue
    • You can start viewing the variables through the following window:

    • Similarly, you can evaluate expressions:

    Stepping in and out

    ColdFusion Builder allows you to control the execution of the application you are debugging through simple code stepping actions.

    You can step in, step out, and step over to view values of variables and can evaluate expressions.

    Debugging a shell application

    Setting breakpoints

    To set breakpoints in your source code right-click in the small left margin in your source code editor and select Toggle Breakpoint. Alternatively, you can also double-click on this position to enable or disable breakpoints. 
    Note that the breakpoints will not be hit for JavaScript code in your application.

    Starting the debugger

    You need to start the debugger to start debugging ColdFusion mobile applications. Perform the following tasks:

    • Start the debugger by clicking the Debug Icon on the menu and selecting Debug As > ColdFusion Client Applications

    • Invoke the application URL from the device using the ColdFusion Shell application:

    • Depending on where you have set the breakpoint, your application may look blank when it starts on your device:

    • At this moment, you can see the control at the breakpoint position in ColdFusion Builder. Continue stepping over and debug your application.

    This action will start the device debugger. If you have not defined any breakpoints, this action will run your application normally. To debug the application, you need to define breakpoints.
    Note: If the code being executed on the browser or the shell application encounters a runtime error, you will see an error message and the debugger will fail to start.

    Viewing variables and evaluating expressions

    While the debugging session is on, you can view the variables and evaluate expressions easily. Ensure that you have activated the ColdFusion Debugging perspective:

    • Click Window > Open Perspective > Other.. and select ColdFusion Debugging:

    • Click OK to continue
    • You can start viewing the variables through the following window:

    • Similarly, you can evaluate expressions:

    Stepping in and out

    ColdFusion Builder allows you to control the execution of the application you are debugging through simple code stepping actions.

    You can step in, step out, and step over to view values of variables and can evaluate expressions.

    Troubleshooting tip

    Note that on Linux, if the debug agent port is not open by default, you should manually go and enable traffic on that port through your Linux tools/firewalls (iptables). For more information on opening up ports on your machine, read the manual for your Linux distribution.
    For more information on using the debugger user interface in ColdFusion Builder, see the Eclipse help.

     

     

     Adobe

    Get help faster and easier

    New user?

    Adobe MAX 2024

    Adobe MAX
    The Creativity Conference

    Oct 14–16 Miami Beach and online

    Adobe MAX

    The Creativity Conference

    Oct 14–16 Miami Beach and online

    Adobe MAX 2024

    Adobe MAX
    The Creativity Conference

    Oct 14–16 Miami Beach and online

    Adobe MAX

    The Creativity Conference

    Oct 14–16 Miami Beach and online