ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Stack​Tracer

by zhangqibupt ST3

a sublime plugin to view ruby source code from backtrace

Labels ruby

Details

  • 1.0.0
  • github.​com
  • github.​com
  • 8 months ago
  • 25 minutes ago
  • 8 months ago

Installs

  • Total 19
  • Win 11
  • OS X 3
  • Linux 5
Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8
Windows 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

StackTracer


StackTracer is a sublime plugin to map ruby stack backtrace to source code and provide ability to jump between source code quickly.

Usage

  1. install stacktracer: press cmd+shift+p, select install package and then choose 'stacktracer'
  2. new a file and paste stack backtrace to it, follow this format:
/Users/qzhang/.rvm/gems/ruby-2.1.5/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
  /Users/qzhang/.rvm/gems/ruby-2.1.5/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
  /Users/qzhang/.rvm/gems/ruby-2.1.5/gems/rack-1.4.5/lib/rack/handler/thin.rb:13:in `run'
  /Users/qzhang/.rvm/gems/ruby-2.1.5/gems/rack-1.4.5/lib/rack/server.rb:268:in `start'
  1. select the backtrace you paste and press cmd+shift+p
  2. choose StackTracer: Build from selection
  3. you can move backward or forward with command StackTracer: Move backward and StackTracer: Move forward

Also, you can do it with shortcut,

ctrl+alt+b : build from selection
ctrl+alt+] : move forward
ctrl+alt+[ : move backward

once you run 'build from selection', you can always move forward/backward with shortcut until you run next 'build from selection' command.