GNU bug report logs - #21521
24.5; pdb default suggested command

Previous Next

Package: emacs;

Reported by: Stefano Pacifico <github <at> pacifico.cc>

Date: Sun, 20 Sep 2015 07:23:01 UTC

Severity: minor

Tags: fixed, patch

Found in version 24.5

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Stefano Pacifico <github <at> pacifico.cc>
Cc: 21521 <at> debbugs.gnu.org
Subject: bug#21521: 24.5; pdb default suggested command
Date: Thu, 11 Jul 2019 06:08:21 +0200
[Message part 1 (text/plain, inline)]
tags 21521 + patch
thanks

Stefano Pacifico <github <at> pacifico.cc> writes:

> When executing `M-x pdb`, the default suggested command is `pdb`, but I couldn’t
> find any validation that standard Python distributions consistently install a
> symlink to`pdb.py` in any `bin` directory (as in the case of my system OS X
> 10.10.5).
>
> If the default command were `python -m pdb`, it would seemingly be compatible with more systems.

This makes sense, and "python -m pdb" is also the recommended usage on
most resources I've been able to find.  On the system I'm on now, the
pdb command is missing.

But I think it's nice to user the shorter version when it's available,
so I suggest to use "python -m pdb" only as a fallback.

Please see the attached patch which does that.

Thanks,
Stefan Kangas
[0001-Use-python-m-pdb-when-pdb-is-missing-in-M-x-pdb.patch (application/octet-stream, attachment)]

This bug report was last modified 5 years and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.