I have some unsafe methods may throw AccessViolationException, it will stop at the line of code with debugger attached. but if run the application without debugger, the application just crashes, cannot log the stack trance to file.
Is there any way to find out which line causes the exception?
I'm using .NET 6