Commit 0428d0e9 authored by Stefan Kangas's avatar Stefan Kangas Committed by Noam Postavsky
Browse files

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)
parent b055ec0d
Pipeline #2794 passed with stage
in 51 minutes and 35 seconds
......@@ -1673,9 +1673,10 @@ and source-file directory for your debugger."
(defcustom gud-pdb-command-name "pdb"
"File name for executing the Python debugger.
This should be an executable on your path, or an absolute file name."
(defcustom gud-pdb-command-name
(if (executable-find "pdb") "pdb" "python -m pdb")
"Command that executes the Python debugger."
:version "27.1"
:type 'string
:group 'gud)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment