Debugging

Debug the created execution file with the simulation software.

Debugging the Processing Item MS

With the debug function in Visual Studio, debug the MS code according to the following procedure:
  1. In Visual Studio, open the program to debug.
  2. Recompile in debug mode.
  3. Set the project to be debugged as the start-up project.
    Select [Project] - [Property] from the menu, and set the project to be debugged for "Single startup project". The project selected here needs to be a project created for XP.
  4. Start debugging.
    Select [Debug] - [Start debug] from the menu to start debugging.
    When debugging starts, the "Executable file in Debug session" dialog opens. In the dialog, select [Executable file name] - [Browse], and specify the execution file "FZ-CoreRA.exe" for the simulation software (Release_XP in the folder where the development environment is installed).
  5. Start debugging by specifying break points etc.
  6. To finish debugging, close the simulator as well.

Debugging the Processing Item UI

With the debug function in Visual Studio, run debugging according to the following procedure:
  1. In Visual Studio, open the project of the program to be debugged.
  2. Recompile in debug mode.
  3. Start the simulation software.
  4. Add your processing item to the flow.
    In the sample program, select "Sample" and add it to the flow.
  5. Select the unit added to the flow to open the Setting window.
  6. Select [Debug] - [Attach to process] from the Visual Studio menu.
    The "Attach to process" dialog opens.
  7. Select "your processing item executable" from the list of selectable processes.
    In the sample program, select "Sample_UI.exe" to debug the processing item UI, or select "EventSample.exe" to debug the event application.
  8. Set break points in the source code.
    The program can be interrupted when an event occurs.
    IMPORTANT
    • The form load process cannot be debugged because debugging is performed by attaching to the launched form.