Running and Debugging Programs with HDevelopEVOπ
Note
If you have worked with a general purpose IDE, particularly Visual Studio Code, many of the HDevelopEVO concepts will be familiar.
Prerequisite: Loading a Configurationπ
Before you can run a program or start debugging, a configuration has to be loaded.
To load a configuration, do one of the following:
- Open a project folder or
- open a workspace.
Running a Programπ
Warning
You can only run a program or use autocompletion if you have saved the HSCRIPT file before.
To start debugging:
-
Open the Debug View by clicking in the First Activity Bar.
-
Choose Launch HALCON Script (HALCONEngine) as your configuration.
-
Click the button.
-
Either click to execute the whole script until you hit a breakpoint, or click to execute line after line.
Itβs also possible to debug more than one file. To debug one file after another, click through them in your thread view.
Working With Breakpointsπ
Using breakpoints, you can pause the execution of your program at a specific line of code.
To set a breakpoint:
- Ensure that debugging is enabled.
- Do one of the following:
- Place the cursor on the corresponding code line and then press F9.
- At the corresponding code line, click in the left margin of the editor.
The breakpoint is indicated by a red dot in the left margin of the editor. Further, all breakpoints are listed in the BREAKPOINTS area of the primary sidebar.