[Python-mode] making stack traces clickable in gud.el pdb output.

Barry Warsaw barry at python.org
Wed Jan 20 00:36:59 CET 2010


On Jan 19, 2010, at 03:06 PM, m h wrote:

>So just to be explicit about what 'run your code from a shell buffer'.  I tried:
>
>1- C-c !
>2- type `execfile('filename.py')` into python shell
>3- hit breakpoint/nirvana

Actually, no!  Seriously, run it in a shell buffer. :)

M-x shell RET
% python filename.py
hit breakpoint/nirvana

:)

>Is that how you do it, or is there another way?  It'd be nice not to
>have to type out part 2.  Right now I have a macro bound to f-11 that
>re-runs my last pdb command.  I guess M-p (like ctr-p in terminal)
>works ok too in  that it scrolls through the command histories.
>
>So that get's rid of one of my problems (gud/pdb scrolls buffer to
>top).  Anyway to make it recognize files and make them clickable in
>the python shell?

"clickable"?  Is that like using that mouse thing?  To paraphrase a wise man,
"There's no clicking in Emacs!" :)

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-mode/attachments/20100119/58990543/attachment-0001.pgp>


More information about the Python-mode mailing list