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

Python​Traceback

by kedder ALL

Easy navigation in your python tracebacks

Details

  • 1.1.1
  • github.​com
  • github.​com
  • 11 years ago
  • 45 minutes ago
  • 11 years ago

Installs

  • Total 12K
  • Win 6K
  • Mac 3K
  • Linux 3K
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 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7
Windows 0 0 0 1 0 1 0 0 0 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 2 0 1
Mac 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 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

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