|
- Overview
- How to proceed?
- 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
During a project test in the editor, the breakpoints are used to automatically start the debugger from a given line. 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" pane, in the "Breakpoints" group, expand "Breakpoint" and select "Add a breakpoint".
- Press Ctrl + B.
- Display the popup menu of bar for breakpoint management and select "Add a breakpoint".
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. Versions 18 and laterDisabling/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" pane, in the "Breakpoints" group, expand "Breakpoint" and select "Disable breakpoint".
- Press Ctrl + Shift + B.
- Open the popup menu of the breakpoint management bar and select "Disable breakpoint":
Remark: The breakpoint can be re-enabled at any time with "Enable breakpoint". New in version 18Disabling/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" pane, in the "Breakpoints" group, expand "Breakpoint" and select "Disable breakpoint".
- Press Ctrl + Shift + B.
- Open the popup menu of the breakpoint management bar and select "Disable breakpoint":
Remark: The breakpoint can be re-enabled at any time with "Enable breakpoint". 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" pane, in the "Breakpoints" group, expand "Breakpoint" and select "Disable breakpoint".
- Press Ctrl + Shift + B.
- Open the popup 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: Versions 16 and laterListing the breakpoints Several methods can be used to list the breakpoints found in the current project: - From the code editor: on the "Code" pane, in the "Breakpoints" group, expand "Breakpoint" and select "List breakpoints".
- In the debugger, click
. Versions 18 and laterDisplay the popup menu of bar for breakpoint management and select "List the breakpoints". New in version 18Display the popup menu of bar for breakpoint management and select "List the breakpoints". Display the popup menu of bar for breakpoint management and select "List the breakpoints".
New in version 16Listing the breakpoints Several methods can be used to list the breakpoints found in the current project: - From the code editor: on the "Code" pane, in the "Breakpoints" group, expand "Breakpoint" and select "List breakpoints".
- In the debugger, click
. Versions 18 and laterDisplay the popup menu of bar for breakpoint management and select "List the breakpoints". New in version 18Display the popup menu of bar for breakpoint management and select "List the breakpoints". Display the popup menu of bar for breakpoint management and select "List the 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" pane, in the "Breakpoints" group, expand "Breakpoint" and select "List breakpoints".
- In the debugger, click
. Versions 18 and laterDisplay the popup menu of bar for breakpoint management and select "List the breakpoints". New in version 18Display the popup menu of bar for breakpoint management and select "List the breakpoints". Display the popup menu of bar for breakpoint management and select "List the breakpoints".
Versions 20 and laterConditional 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: - Create a breakpoint (Inserting a breakpoint paragraph).
- Display the breakpoint properties:
- via the code editor: On the "Code" pane, in the "Breakpoints" group, expand "Breakpoint" and select "Breakpoint properties".
- via the popup menu of breakpoint: Display the popup menu of bar for breakpoint management and select "Breakpoint properties".
- 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 passages on the breakpoint 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.
- Validate. The conditional breakpoint is displayed in the editor (
).
New in version 20Conditional 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: - Create a breakpoint (Inserting a breakpoint paragraph).
- Display the breakpoint properties:
- via the code editor: On the "Code" pane, in the "Breakpoints" group, expand "Breakpoint" and select "Breakpoint properties".
- via the popup menu of breakpoint: Display the popup menu of bar for breakpoint management and select "Breakpoint properties".
- 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 passages on the breakpoint 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.
- Validate. The conditional breakpoint is displayed in the editor (
).
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: - Create a breakpoint (Inserting a breakpoint paragraph).
- Display the breakpoint properties:
- via the code editor: On the "Code" pane, in the "Breakpoints" group, expand "Breakpoint" and select "Breakpoint properties".
- via the popup menu of breakpoint: Display the popup menu of bar for breakpoint management and select "Breakpoint properties".
- 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 passages on the breakpoint 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.
- Validate. The conditional breakpoint is displayed in the editor (
).
Versions 23 and laterBreakpoint without stop but saved in the debug trace In some cases, when debugging an application, it is useful to know the code line 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: - Create a breakpoint (Inserting a breakpoint paragraph).
- Display the breakpoint properties:
- via the code editor: On the "Code" pane, in the "Breakpoints" group, expand "Breakpoint" and select "Breakpoint properties".
- via the popup menu of breakpoint: Display the popup menu of bar for breakpoint management and select "Breakpoint properties".
- 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 code line.
- Add a message into the debugger trace: the passage by the breakpoint adds the message specified in the "Trace of debugger" pane.
Remark: If no message is specified, the name of current process is displayed in the "Trace of debugger" pane. Remark: If the two actions are unchecked, the breakpoint is automatically disabled. - Validate. The
icon found before the breakpoint indicates that it includes specific properties.
New in version 23Breakpoint without stop but saved in the debug trace In some cases, when debugging an application, it is useful to know the code line 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: - Create a breakpoint (Inserting a breakpoint paragraph).
- Display the breakpoint properties:
- via the code editor: On the "Code" pane, in the "Breakpoints" group, expand "Breakpoint" and select "Breakpoint properties".
- via the popup menu of breakpoint: Display the popup menu of bar for breakpoint management and select "Breakpoint properties".
- 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 code line.
- Add a message into the debugger trace: the passage by the breakpoint adds the message specified in the "Trace of debugger" pane.
Remark: If no message is specified, the name of current process is displayed in the "Trace of debugger" pane. Remark: If the two actions are unchecked, the breakpoint is automatically disabled. - Validate. The
icon found before the breakpoint indicates that it includes specific properties.
Breakpoint without stop but saved in the debug trace In some cases, when debugging an application, it is useful to know the code line 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: - Create a breakpoint (Inserting a breakpoint paragraph).
- Display the breakpoint properties:
- via the code editor: On the "Code" pane, in the "Breakpoints" group, expand "Breakpoint" and select "Breakpoint properties".
- via the popup menu of breakpoint: Display the popup menu of bar for breakpoint management and select "Breakpoint properties".
- 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 code line.
- Add a message into the debugger trace: the passage by the breakpoint adds the message specified in the "Trace of debugger" pane.
Remark: If no message is specified, the name of current process is displayed in the "Trace of debugger" pane. Remark: If the two actions are unchecked, the breakpoint is automatically disabled. - Validate. The
icon found before the breakpoint indicates that it includes specific properties.
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |