After you build all or part of an application and compile and save its objects, you can run the application. The PocketBuilder development environment provides two ways to run an application on the desktop: in debug mode and in test mode.
In debug mode, you can insert breakpoints (stops) in scripts and functions, single-step through code, and display the contents of variables to locate logic errors that will result in errors during execution.
In the desktop test mode, the application responds to user interaction and runs until you stop it or until a runtime error occurs.
You can also collect trace information while you run your application in test mode, then use the trace data to profile your application. For more information, see Chapter 26, “Tracing and Profiling Applications.”
You can also test an application by deploying and running it on a supported emulator or device.
Table 25-1 shows the advantages and disadvantages of troubleshooting an application, depending on where and how you deploy it.
Platform |
Advantage |
Disadvantage |
---|---|---|
Running from the IDE |
|
|
Running in the Emulator |
|
|
Running in the PDA |
|
|