How to generate exception stack?

I’m testing to get exception stack with the code below.
With IDE, I see the log file generated by Logging method but in case I make a .exe file I don’t see that.

How can I generate exception stack on running application(.exe)?

 Try
        
    raise new OutOfBoundsException
    
  Catch exc As RuntimeException
    
    Dim type As String = Introspection.GetType(exc).Name
    Logging(type + EndOfLine + EndOfLine + Join(exc.Stack, EndOfLine))
    
    MsgBox " exception detected ... "
    
  End

I think you need to enable Include Function Names (Build -> Shared) to get this into the EXE.

Execuse me. Where is Build->Shared?

Ah… I found it. I will try that.

You’re right. I should have enabled “Include Function Names”.

Thanks a lot!

You are welcome!