Debug the edited code

The debugging process of the edited code is different for the design time and runtime NetLogic.
  1. If you want to debug a runtime NetLogic or if new custom types are created in the project, in
    FactoryTalk Optix Studio
    , select Run .
    The
    FTOptixApplication
    is compiles and runs.
  2. Select your development platform for debugging.
  3. If you use Visual Studio, from the
    Debug
    menu, select
    Reattach to Process
    .
    IMPORTANT: If you have closed Visual Studio since the previous debugging session, select
    Attach to Process
    and reset the link. See Configure the debugger.
  4. If you use Visual Studio Code:
    1. Open the pane by pressing
      .
    2. At the top of the pane, from the drop-down menu, select:
      Attach to FTOptixRuntime (NetSolution)
      Debugs a runtime NetLogic.
      Attach to FTOptixStudio (NetSolution)
      Debugs a design-time NetLogic.
    IMPORTANT: If Visual Studio Code ignores the breakpoints, restart Visual Studio Code and repeat this procedure.
  5. In Visual Studio or Visual Studio Code, in the debug mode, open the NetLogic that you want to check.
  6. Do any of the following:
    • If the NetLogic is at runtime, select
      Start Debugging
      or press
      .
    • If the NetLogic is at design-time, in
      FactoryTalk Optix Studio
      , right-click a NetLogic and select a method to execute.
  7. Debug the code.
    For more information on debugging in Visual Studio, see First look at the debugger - Visual Studio (Windows) | Microsoft Docs.
    For more information on debugging in Visual Studio Code, see Debugging in Visual Studio Code.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.