Skip to content

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:

  1. Open the Debug View by clicking in the First Activity Bar.

  2. Choose Launch HALCON Script (HALCONEngine) as your configuration.

  3. Click the button.

  4. 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:

  1. Ensure that debugging is enabled.
  2. 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.