On Tue, Jan 19, 2010 at 7:28 AM, Barry Warsaw <ba...@python.org> wrote:
> On Jan 18, 2010, at 06:27 PM, m h wrote:
>
>>I'm using pdb (from gud.el) with emacs, which is working pretty good.
>>I've got two gripes.
>>
>>  * After I run pdb on a testfile, the point goes to the top of the buffer
>>  * I'd like to be able to click on files in the stacktrace (on
>>unittest failures) and have emacs open the buffer to the correct line
>>
>>I figure if I can fix the later 80% of the other issues are covered.
>>Any pointers or tips are greatly appreciated.  I've searched gud.el
>>for alist and find-file, but alas my elisp is not quite up to snuff to
>>tell if this is actually supported.
>
> I'm afraid I can't help much.  I generally use pdb-track instead of gud, and
> haven't really noticed any problems.

Wow, didn't you add python support to gud?

Would you (or anyone else) care to mention their workflow?  I've just
been trying to get python-mode C-c C-c to allow me to use pdb.  But I
get an error:

> <stdin>(181)_test()
(Pdb)
Traceback (most recent call last):
  File "<stdin>", line 186, in <module>
  File "<stdin>", line 181, in _test
  File "<stdin>", line 181, in _test
  File "/usr/lib64/python2.6/bdb.py", line 46, in trace_dispatch
    return self.dispatch_line(frame)
  File "/usr/lib64/python2.6/bdb.py", line 65, in dispatch_line
    if self.quitting: raise BdbQuit
bdb.BdbQuit


How do I invoke pdbtrack from python-mode?

I usually have unittests or doctests for my modules, when I've got
problems I like to step through, so I insert a 'import pdb;
pdb.set_trace' and run through M-x pdb.  I'd be interested in what
others are doing.

-matt
_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to