+ Start a Discussion

Get Stack Trace without an Exception

Does anyone know if there is a way to get the stack trace from APEX without generating an Exception  to slow things down?  I have something that might be called in a Loop and want to know precisely where it came from without having to generate a false exception.  Thanx!
Maybe you can add some debug logs to your Apex code and turn on "Debug Logs" to check the details.
Yes, but I need to actually record where it’s coming from. Thanx though!