[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cannot run PDB properly in emacs 22.1.1 on windows-xp
From: |
roc lee |
Subject: |
Re: Cannot run PDB properly in emacs 22.1.1 on windows-xp |
Date: |
Thu, 10 Jan 2008 23:00:39 -0800 (PST) |
User-agent: |
G2/1.0 |
On 1月11日, 上午4时30分, Nick Roberts <nick...@snap.net.nz> wrote:
> > If the command line was "python -m pdb test.py", as sugested,
> > the message should be:
>
> Where does it suggest this?
> >
> > The debug message was not displayed immediately when the debug command
> > was inputted, but was thrown out all together after the "q" was given.
> >
> > Using "python c:\python25/Lib/pdb.py test.py", I got:
> >
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > Current directory is c:/python25/Lib/
> > Error: test.py does not exist
>
> default-directory is set to c:/python25/Lib from your previous attempt.
> Specifying the path to test.py should work:
>
> python c:\python25/Lib/pdb.py c:/yourpath/to/test.py
>
> If you don't specify the path to test.py you need to make sure that
> default-directory is the directory test.py is in, e.g., by doing M-x dired
> in that directory first.
>
> Why not just do:
>
> pdb c:/yourpath/to/test.py
> or
> pdb test.py
Thank you for your response.
But my emacs cannot execute such commands:
"apply: Searching for program: no such file or directory, pdb"
I copied "pdb.pyc" and "pdb.py" to "c:\Python25\".
Running "pdb.pyc test.py", the response was:
apply: Searching for program: no such file or directory, pdb.pyc
Running "c:\python25\Lib\pdb.pyc test.py", the response was:
"apply: Spawning child process: invalid argument"
With "pdb.py", I got the same result.
>
> ?
>
> as the default name for gud-pdb-command-name is just "pdb".
>
> --
> Nick http://www.inet.net.nz/~nickrob