Running Your Application

This part describes the ways in which your application can be run. The first chapter describes how to run your application from within PowerBuilder: in debug mode, where you can set breakpoints and examine the state of your application as it executes, and in regular mode, where the application runs until you stop it or an error occurs. The second chapter describes how to collect trace information so that you can analyze performance and evaluate your application's structure. The third chapter describes how to build your application for distribution to users.

Table of Contents

Debugging and Running Applications
Overview of debugging and running applications
Debugging an application
Starting the debugger
Setting breakpoints
Running in debug mode
Examining an application at a breakpoint
Stepping through an application
Debugging windows opened as local variables
Just-in-time debugging
Using the DEBUG preprocessor symbol
Breaking into the debugger when an exception is thrown
Running an application
Running the application
Handling errors at runtime
Tracing and Profiling Applications
About tracing and profiling an application
Collecting trace information
Tracing an entire application in PowerBuilder
Using a window
Collecting trace information using PowerScript functions
Analyzing trace information using profiling tools
Profiling Class View
Profiling Routine View
Profiling Trace View
Setting call aggregation preferences
Analyzing trace information programmatically
Analyzing performance with a call graph model
Analyzing structure and flow using a trace tree model
Accessing trace data directly
Generating a trace file without timing information
Creating Executables and Components
About building PowerBuilder targets
Creating a project
Using the Project painter
Defining an executable application project
Using dynamic libraries
Attaching or embedding manifest files
Distributing resources
Distributing resources separately
Using PowerBuilder resource files
What happens at runtime
Tracing execution
Building an executable file and dynamic libraries
How PowerBuilder builds the project
How PowerBuilder searches for objects
Listing the objects in a project
Building proxies and .NET targets