Skip to content

Quick start

Margee supports three debugging modes:

  1. RUNTIME
    Use this mode to debug your project logic during execution. You can set breakpoints, inspect variables, and step through code to troubleshoot behavior.

  2. HMI
    Use this mode to debug only the Human-Machine Interface (HMI) in offline mode. The interface and logic behave like they do on a real device, but values read from the device always return 0. This is useful for developing and testing UI behavior without connecting hardware.

  3. RUNTIME & HMI
    Use this mode to debug both project logic and HMI together. You can inspect runtime behavior while interacting with the interface in the same session.

Switching between Debugging Types

In Visual Studio Code, select the desired debug configuration in the Run and Debug panel (left sidebar), then press F5 to start the session.

In RUNTIME and RUNTIME & HMI mode, the debugger communicates with the device over the network. Make sure your device is on the same network as your development machine, and that the correct IP address is configured in your project settings (.TPS file).