Debugging NetLogics
Identify, investigate, and fix issues with runtime and design time NetLogics.
IMPORTANT:
FactoryTalk Optix Studio
supports only .NET libraries with the .NET Standard 8 destination framework. To debug FactoryTalk Optix Applications
with Visual Studio®
or Visual Studio Code®
, install .NET SDK.Debugging approaches
You can either:
- Debug design-time and runtime NetLogics in a local project with an external code editor. See Debug NetLogic locally with Visual Studio Code and Debug NetLogic locally with Visual Studio.
- Debug runtime NetLogics deployed to remote Windows target devices. See Debug NetLogic remotely with Visual Studio.
- Debug design-time and runtime NetLogics by displaying log messages directly inFactoryTalk Optix Studio. See Debug NetLogic by logging to output.
Troubleshooting common debugging issues
In case of errors with debuggers in external code editors:
- Make sure that .NET solution compiles. InFactoryTalk Optix Studio, investigate theOutputpane for .NET solution compilation errors and fix the NetLogic code if needed. See Output pane.
- Make sure that you saved your project and NetLogics in bothFactoryTalk Optix Studioand your external code editor.
- Make sure that yourFactoryTalk Optix Applicationuses the latest code. Run yourFactoryTalk Optix Applicationagain. See Deploy a FactoryTalk Optix Application.
- Make sure that you attached the debugger to the right process.
debug
Provide Feedback