I have a V2 Function deployed which has an unhandled exception. I would expect (and think it was in V1) to see the stack trace and line number in the error log but instead all I get is:
System.Private.CoreLib: Exception while executing function: MyFunction. MyProjectNameToCall: Object reference not set to an instance of an object.
Is there some configuration I need to set to be able to see this?
Thanks
Realised my mistake. The logging in the monitor section of the Functions only displays trace information and when I was looking in Application Insights I was only looking at traces.
If I view 'exceptions' (seems quite obvious now!) in Application Insights then I can see the stack trace and line numbers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With