Setting breakpoints
Before and during debugging,
you can set breakpoints in the Script editor on any page you deployed.
At a breakpoint, you can:
- Set more breakpoints for any open page
in the target
Limitations when debugging Do not edit pages while debugging. Do not interact with the
browser when paused at a breakpoint.
- Examine variables in the Watches window
The variables window lists local variables in the current
script, and global variables and objects on the current page. - Examine the call stack
The Call Stack window shows the chain of function calls that
led to the current script. - Step line by line through the script
Inserting breakpoints
Before you start debugging, you should set at least one breakpoint.
Breakpoints that you set remain in effect until you remove them.
To set a breakpoint:
-
In the Script editor, right-click a line
of code that is not currently a breakpoint. -
From the popup menu, select Set/Remove
Breakpoint.or
Press F9.
Removing breakpoints
The breakpoint command is a toggle switch.
To remove a breakpoint:
-
In the Script editor, right-click the line
that has the breakpoint you want to remove. -
From the popup menu, select Set/Remove
Breakpoint.or
Press F9.
To remove all breakpoints from the file or target
- Click inside the Script editor.
-
Select Edit>Remove All Breakpoints (from
this file or from this target) from the menu bar.
To remove all breakpoints from a page:
-
In the Script editor, right-click in a
script. -
Select Remove All Breakpoints (on this page) from
the popup menu.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest