[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Python debugger: To run pdb, how fix wrong path & filename & scriptn
Re: Python debugger: To run pdb, how fix wrong path & filename & scriptname on command line???
29 Oct 2003 11:24:54 -0800
Thanks. It worked! This is really quite nice to have. I really appreciate it.
Is it easy to add more things after this successfull code snippet gets run??
1. Even though path and rest of command line is correct, Emacs still asks
a question to verify it is correct. I must press RETURN to approve.
*Can I make code snippet do the RETURN automatically?*
2. For various reasons, it is ALWAYS necessary to execute the same command twice
in pdb when started. (The "step" command.)
*Can I even run "step" twice in pdb interface automatically too?*
Kevin Rodgers <address@hidden> wrote in message news:<address@hidden>...
> 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."
> (list (gud-query-cmdline '/usr/local/bin/pdb.py
> (file-name-nondirectory buffer-file-name)))))