How to get main thread callstack on other thread in swift

486 views Asked by At

The Thread.callStackSymbols can only get the current thread callstack, and I cant jump to main thread by GCD like this:

DispatchQueue.main.async {
    let result = Thread.callStackSymbols
}

so, how to get main thread callstack on other thread

0

There are 0 answers