From: Kevin Rodgers <ihs_4664@yahoo.com>
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 [thread overview]
Message-ID: <3F97EFE1.5070304@yahoo.com> (raw)
In-Reply-To: bf23f78f.0310221414.1b8acec9@posting.google.com
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
next prev parent reply other threads:[~2003-10-23 15:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-22 22:14 Python debugger: To run pdb, how fix wrong path & filename & scriptname on command line??? Christian Seberino
2003-10-23 15:12 ` Kevin Rodgers [this message]
2003-10-29 19:24 ` Christian Seberino
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F97EFE1.5070304@yahoo.com \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).