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+v. New scratch buffer will be
opened with the traceback. Place the cursor on a line you want to navigate to
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
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.
PythonTraceback defines the following commands:
|Command||Title||Default Key Binding|
||Traceback: Paste Traceback||
||Traceback: Go To Line||
||Traceback: Go Up||
||Traceback: Go Down||
To install this plugin, you have two options:
Package Control (recommended). If you have Sublime Package Control installed, simply search for
Manual. Clone source code to Sublime Text
$ git clone https://github.com/kedder/sublime-python-traceback PythonTraceback