Page History
Servoy comes with a full-featured debugging environment to allow developers to debug their script logic using debug clients, including the Smart Client and Web Client.
This chapter provides a general overview of the debugging process, followed by a description of features available in the Debug perspective.
Table of Contents |
---|
Getting Started
Debugging uses the following general process: (1) starting a Servoy client, (2) setting breakpoints for errors detected, then (3) switching to the Debug perspective to proceed with debugging.
1. Starting a Servoy Client
Servoy solutions can be tested in the desired environment by launching the (1) Smart Client or (2) Web Client (see image).
Clicking on either button launches the Servoy client for the currently active solution.
2. Setting Breakpoints
When an error is encountered while running a Servoy client, developers can set breakpoints for methods in the script that they wish to debug.
Breakpoints can be added to any open script file, regardless of whether or not a Servoy client is running. To add breakpoints:
- Open the script that you wish to debug in Script Editor.
- Double-click on the left side bar to add a breakpoint to the specific line in the method you that would like to debug.
- Repeat the process to add breakpoints as needed.
Info Note: To remove breakpoints, simply double-click on the breakpoint again.
3. Switching to the Debug Perspective
When a breakpoint is reached while using the Servoy client, a prompt will appear, asking you to confirm that you want to switch to the Debug Perspective. At this point, you can select the option to "Remember my decision."
You can then continue with the debugging process in the Debug Perspective.
Info |
---|
Note: You also can start debugging at a specific method within the script using the following steps:
|
Info |
---|
Note: You can switch between the Debug and Servoy Design perspectives at any time using the following methods:
|
...
Panel | ||||
---|---|---|---|---|
Quick Links:
|
The Debug Perspective
The Debug perspective contains the following views, divided into five main areas, described below from left to right and top to bottom.
...