Download Appeon Developer User Guide - Appeon for PowerBuilder 2013

Transcript
Debugging Appeon Web Applications
Appeon for PowerBuilder 2013
1. Do set breakpoints to the code lines supported by Appeon.
2. Do set simple breakpoints to script, don't set special breakpoints, such as breakpoints
triggered when a statement has been executed a specified number of times (an occasional
breakpoint), when a specified expression is true (a conditional breakpoint), or when the
value of a variable changes.
3. To set a SQL statement that spans multiple lines as a breakpoint, do set the breakpoint at
the first line, don't set breakpoints at the other lines. If you try to set a breakpoint at the
other lines, the breakpoint will be set to the line that follows the SQL statement.
4. To set a PowerScript non-SQL statement, which spans multiple lines with continuation
characters (&) as a breakpoint, do set the breakpoint at the last line of the statement, and if
it is set at the other lines, the breakpoint icon is still added to the last line.
Note: you can set a breakpoint to the FOR statement, but the application will be suspended
for only once when this statement is executed.
7.4.2 Methods for setting breakpoints
You can set breakpoints in the Source, Breakpoints, Variables, or Watch view, before or after
the application starts to run in debug mode.
Method #1: Setting a breakpoint in the Source view
Step 1: Select the script to display in the Source View.
Select a function or event in the Source Browser view to display its script in the Source View,
or right click on the Source view and select Select Script from the popup menu to select the
script to be displayed.
Step 2: Right click a line in the Source view and select Insert Breakpoints from the popup
menu.
Once a breakpoint is set, a red circle displays at the beginning of the line.
Appeon Developer User Guide
Page 93