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.
Working With Breakpoints
The following properties can be assigned for a selected breakpoint using the context menu item Breakpoint Properties, accessed by right-clicking on the desired breakpoint in the editor view or the Breakpoints view:
- Enable or disable the breakpoint (disabled breakpoints will show as white circles instead of blue on the vertical bar, and their checkboxes will be unchecked in the Breakpoints view).
- Specify a hit count condition for breaking.
- Specify other breakpoint conditions.
In addition, the following functions are available via the toolbar in the Breakpoints view:
- Delete selected breakpoint.
- Delete all breakpoints (Caution: Breakpoints in all open editors will be deleted.)
- Show breakpoints supported by selected target (shows only the breakpoints for the currently selected script editor view).
- Go to file for breakpoint (goes to breakpoint location in Script editor).
- Skip all breakpoints at runtime.
- Toggle Global ExceptionBreak (only stops the process and shows the breakpoint when an error occurs)
- Toggle Global EntryBreak (breaks the process every time a method attempts to execute, with or without a breakpoint)
- Toggle Global ExitBreak (breaks the process after the execution of a method, with or without a breakpoint)
- Expand all
- Collapse all
- Link with Debug view (highlights the selected breakpoint in the Debug script editor view)
Accessing Log Files
During debugging, Servoy Developer logs the activities of the debug client in the following file:
An additional (external) console window providing more detailed information can be launched by Eclipse by adding "-consoleLog" to the top of the servoy.ini file (for Mac users, this file is exposed when you view the Servoy application package contents and browse to the MacOS folder.) This console is useful for getting additional feedback during debugging.