Fast jump to error lines?

Charles Fox <[email protected]> Wed, 24 Jun 2015 13:42:30 +0100
Newsgroups gmane.comp.python.ipython.user
Message-ID <CAPRvcZaBwNrbU6VfNqznSXKCEDF15VvAXb9xL6YMzAcETEZZyg@mail.gmail.com>
Hi all,

I just joined this list to ask a question that's been bugging me for ages,
I wonder if anyone has any suggestions:

I'd like to optimize my IPython workflow some more.   I work in IPython and
vim, using "ed" to enter Vim for ipython.   When my program dies I see the
backtrace, make a mental note of the file and line number of the error,
type "ed <filename>" then use ":" in vim to jump to the error line.   I'd
like to reduce the cognitive load here by defining an ipython command that
does this automatically.   So when I see the backtrace, I type a command
and it opens vim with the right file and error line.

I think like most iPython users, doing this debuging dance takes up a
significant portion of my day, so it seems worth automating.   But it seems
strange that no-one has already built this yet -- is there some reason  for
that?   Maybe some feature already exists to do this that I don't yet know
about?   Or is there a technical problem to build it?

Is anyone else wanting a tool like this?

I looked at IPython internals just a little bit to tweak the debugger
displays before, but I'm not sure where this feature would live, or how to
access the backtrace text from the ipython console programatically.   I'd
want to parse out the filename and line number than open vim with
"+<linenumber>", from within IPython code.  Any suggestions could be really
useful?   Could it be done as a magic or does it need changes to IPython
code itself?

_______________________________________________
IPython-User mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/ipython-user