|
From: | Kevin Rodgers |
Subject: | Re: Python debugger: To run pdb, how fix wrong path & filename & scriptname on command line??? |
Date: | Thu, 23 Oct 2003 09:12:33 -0600 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Christian Seberino wrote:
When you try to run the Python debugger in Emacs with pdb command it asks you what the desired command line to invoke pdb is. It assumes script is pdb and not pdb.py. Also, the path is missing so Emacs says it cannot find pdb.py script. Also, the filename is not always correct. How fix the entire command line for all invocations of pdb??
Does this work? (defadvice pdb (before gud-query-cmdline activate) "Provide a better default command line when called interactively." (interactive (list (gud-query-cmdline '/usr/local/bin/pdb.py (file-name-nondirectory buffer-file-name))))) -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |