Debug user code

Release time: February 2024

In case the calculation code needs debugging, the CalcDebugger can be used. There are some requirements before using:

CalcDebugger utilizes the Visual Studio Code. After installing Visual Studio Code, please also install C# plugin:

Instructions:

  1. Before launching the debugger, check that the code and the process is compiled without errors. If there are errors, please fix them beforehand.

  2. Check that the process has only one calculation instance.

  3. To launch debug choose Debug in task menu:

  1. Please note that the flow is different if you already have CalcDebugger installed.
    In case the CalcDebugger is not installed you need to downloaded it first:
  • Download CalcDebugger and install it.
  • CalcDebugger runs automatically and opens in VSCode with required files.
  1. Set a break point in the code file.

  2. Switch to debug tab and press Start Debugging(F5).

Note: calculation runs only once, not in the loop.