diff options
| author | Stefan Kangas | 2019-07-11 05:51:18 +0200 |
|---|---|---|
| committer | Noam Postavsky | 2019-08-08 20:07:37 -0400 |
| commit | 0428d0e96be41686858b030eeb4ff27f52822566 (patch) | |
| tree | 138233c1d111c80c6b1362df1c4b0ed045aa0f33 | |
| parent | b055ec0d85848987d0ba3962c32fb822b292dfd7 (diff) | |
| download | emacs-0428d0e96be41686858b030eeb4ff27f52822566.tar.gz emacs-0428d0e96be41686858b030eeb4ff27f52822566.zip | |
Use "python -m pdb" when "pdb" is missing in M-x pdb
* lisp/progmodes/gud.el (gud-pdb-command-name): Use "python -m pdb"
when "pdb" is missing. (Bug#21521)
| -rw-r--r-- | lisp/progmodes/gud.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index b6a4ad3cd0c..30d4b199110 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -1673,9 +1673,10 @@ and source-file directory for your debugger." | |||
| 1673 | 1673 | ||
| 1674 | output)) | 1674 | output)) |
| 1675 | 1675 | ||
| 1676 | (defcustom gud-pdb-command-name "pdb" | 1676 | (defcustom gud-pdb-command-name |
| 1677 | "File name for executing the Python debugger. | 1677 | (if (executable-find "pdb") "pdb" "python -m pdb") |
| 1678 | This should be an executable on your path, or an absolute file name." | 1678 | "Command that executes the Python debugger." |
| 1679 | :version "27.1" | ||
| 1679 | :type 'string | 1680 | :type 'string |
| 1680 | :group 'gud) | 1681 | :group 'gud) |
| 1681 | 1682 | ||