Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCBacktrace

badge-pms badge-platforms badge-languages Swift Version

Getting backtrace of any thread for Objective-C and Swift. Only a small amount of C code, almost all done in Swift. It is is much more powerful than Thread.callStackSymbols, callStackSymbols can only get the current thread call stack symbol, and the symbol not Name Mangling in Swift。

Features

  • Support both Objective-C and Swift
  • Support get backtrace of any thread
  • Support swift_demangle

Usage

setup

RCBacktrace.setup()

callstack of thead

let symbols = RCBacktrace.callstack(.main)
for symbol in symbols {
    print(symbol.description)
}

Screen Shot 2019-08-27 at 10.40.02 PM.png

≈ Requirements

  • iOS 8.0+
  • Swift 4.0-5.x

Installation

Carthage

Add the following line to your Cartfile

git "https://github.com/woshiccm/RCBacktrace.git" "0.1.6"

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. To integrate Aspect into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target 'xxxx' do
    pod 'RCBacktrace', '~> 0.1.6'
end

License

Aspect is released under the MIT license. See LICENSE for details.

About

Getting backtrace of any thread for Objective-C and Swift

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.