ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Test
  • Overview
  • How to?
  • Inserting a breakpoint
  • Disabling/Enabling a breakpoint
  • Deleting one or more breakpoints
  • Listing the breakpoints
  • Conditional breakpoint
  • Breakpoint without stop but saved in the debug trace
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
During a project test in the editor, breakpoints are used to automatically start the debugger from a given line.
How to?

Inserting a breakpoint

Several methods can be used to insert a breakpoint:
  • Click on the left of the line where the breakpoint must be inserted. The mouse cursor turns into a hand and the sign is displayed.
  • On the "Code" tab, in the "Breakpoints" group, expand "Breakpoint" and select "Add a breakpoint".
  • Press Ctrl + B.
  • Open the context menu of bar for breakpoint management and select "Add a breakpoint".
    Context menu of breakpoints
Remark: The breakpoints are taken into account during the application tests in the editor of WINDEV, WEBDEV or WINDEV Mobile. The breakpoints are ignored when using the executable.

Disabling/Enabling a breakpoint

A disabled breakpoint is still present in the code editor but it is ignored when debugging the application (it becomes grayed). Several methods can be used to disable the breakpoint for the current line:
  • On the "Code" tab, in the "Breakpoints" group, expand "Breakpoint" and select "Disable breakpoint".
  • Press Ctrl + Shift + B.
  • Open the context menu of the breakpoint management bar and select "Disable breakpoint":
Remark: The breakpoint can be re-enabled at any time with "Enable breakpoint".

Deleting one or more breakpoints

Several methods can be used to delete a breakpoint:
  • In the code editor, click the breakpoint. The mouse cursor turns into a hand and the sign is displayed.
  • On the "Code" tab, in the "Breakpoints" group, expand "Breakpoint" and select:
    • "Delete breakpoint" to delete the breakpoint from the current line.
    • "Remove all breakpoints" to remove all breakpoints.
  • In the debugger, click .
  • Open the context menu of bar for breakpoint management:
    • select "Delete breakpoint" to delete the breakpoint found on the current line.
    • select "Remove all breakpoints" to delete all breakpoints.

Listing the breakpoints

Several methods can be used to list the breakpoints found in the current project:
  • From the code editor: on the "Code" tab, in the "Breakpoints" group, expand "Breakpoint" and select "List breakpoints".
  • In the debugger, click .
  • Open the context menu of bar for breakpoint management and select "List the breakpoints".

Conditional breakpoint

When debugging a loop, it may be useful to trigger the debugger after a number of passages (after the 35th iteration for example). To implement a conditional breakpoint:
  1. Create a breakpoint (Inserting a breakpoint paragraph).
  2. Display the breakpoint properties:
    • via the code editor: On the "Code" tab, in the "Breakpoints" group, expand "Breakpoint" and select "Breakpoint properties".
    • via the context menu of breakpoint: Open the context menu of bar for breakpoint management and select "Breakpoint properties".
  3. In the window that is displayed, in the "Conditions" area, specify the conditions for taking the breakpoint into account:
    • Always (default value): The breakpoint will not be conditional and it will always be taken into account.
    • When the number of times a breakpoint has occurred is: Used to make the breakpoint conditional. To do so, select a condition and the desired number of passages.
    • When the expression below is true: Used to make the breakpoint conditional. Simply enter the condition directly in the "If" field.
  4. Validate. The conditional breakpoint is displayed in the editor ().

Breakpoint without stop but saved in the debug trace

In some cases, when debugging an application, it is useful to know the line of code on which the process passed but without stopping in the debugger. In this case, a single information must be displayed in the trace window.
To implement this feature:
  1. Create a breakpoint (Inserting a breakpoint paragraph).
  2. Display the breakpoint properties:
    • via the code editor: On the "Code" tab, in the "Breakpoints" group, expand "Breakpoint" and select "Breakpoint properties".
    • via the context menu of breakpoint: Open the context menu of bar for breakpoint management and select "Breakpoint properties".
  3. In the window that is displayed, in the "Actions" area, specify the action to perform during the passage by the breakpoint (these actions can be combined):
    • Interrupt execution (default value): the breakpoint interrupts the execution ans starts the debugger on the current line of code.
    • Add a message to the debugger trace: the passage by the breakpoint adds the message specified in the "Debugger trace" pane.
      Remark: If no message is specified, the name of the current process is displayed in the "Debugger trace" pane.
    Remark: If the two actions are unchecked, the breakpoint is automatically disabled.
  4. Validate. The icon found before the breakpoint indicates that it includes specific properties.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help