How to find eCLR exception descrition?
Hello,
I am using FBs written in C#. We have a problem where the PLC goes into a Sleepy Crash, no errors but no execution of my code.
When I stop the PLC I get the eCLR exception Unhandled message, but there is nothing on the Notifications nor on the output.log.
How do I know what caused the exception? Thanks.
Comments
Hello alexsanchez,
please try to provide the exception into Output.log File:
try
{
your Method
}
catch (Exception ex)
{
Eclr.Log.Error(ex.Message + "\r\n" + "StackTrace" + ex.StackTrace);
}
Please also find additional Information/Options in Deskription of "Exception Class" in eCLR Programming Reference.
Best Regards
Eduard
Thank you Edward, that was very useful.
Alex