help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Python debugger: To run pdb, how fix wrong path & filename & scriptn


From: Christian Seberino
Subject: Re: Python debugger: To run pdb, how fix wrong path & filename & scriptname on command line???
Date: 29 Oct 2003 11:24:54 -0800

Kevin

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?*

Thanks!

Chris

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."
>    (interactive
>     (list (gud-query-cmdline '/usr/local/bin/pdb.py
>                              (file-name-nondirectory buffer-file-name)))))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]