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

Python​Traceback

by kedder ST2/ST3

Easy navigation in your python tracebacks

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

PythonTraceback

PythonTraceback is a plug-in for Sublime Text, that allows easy navigation in your python tracebacks. Copy a traceback from your terminal to clipboard, switch to Sublime Text and press Ctrl+t, Ctrl+v. New scratch buffer will be opened with the traceback. Place the cursor on a line you want to navigate to and press Alt+d: file will be opened at the line, specified in traceback.

While traceback window is open (but not necessarily active), you can navigate up and down in traceback by pressing Alt-k and Alt-j respectively.

Pressing Ctrl+t, Ctrl+v again will replace traceback buffer with new traceback from the clipboard.

If you are working on a project, traceback lines, that match your project' files, will be specially marked by little dots in gutter to make it simple to spot “own” files.

PythonTraceback will try hard to find local file that matches one, specified in traceback, even if it does not exists directly. If at least partial path can be found in one of your project folders, PythonTraceback will open the file for you. This is very useful for analyzing tracebacks from remote machines, where application is located in different directory.

Defined commands

PythonTraceback defines the following commands:

Command Title Default Key Binding
traceback_paste Traceback: Paste Traceback Ctrl+t, Ctrl+v on PC or ⌘-t, ⌘+v on OSX
traceback_goto_line Traceback: Go To Line Alt+d
traceback_go_up Traceback: Go Up Alt+k
traceback_go_down Traceback: Go Down Alt+j

Installation

To install this plugin, you have two options:

  1. Package Control (recommended). If you have Sublime Package Control installed, simply search for PythonTraceback to install.

  2. Manual. Clone source code to Sublime Text Packages folder:

$ git clone https://github.com/kedder/sublime-python-traceback PythonTraceback