[Top][All Lists]

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

Cannot run PDB properly in emacs 22.1.1 on windows-xp

From: roc lee
Subject: Cannot run PDB properly in emacs 22.1.1 on windows-xp
Date: Thu, 10 Jan 2008 02:07:21 -0800 (PST)
User-agent: G2/1.0

I tried to debug a source file named "", which contained only
line: "i = 1". In windows command-line, I could debug it with PDB
correctly, but couldn't have it worked properly in emacs.

The version of emacs on my machine is:
GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE.

After inputting "M-x pdb", and then "python -m c:\python25\Lib\", I got the following error message:

Current directory is c:/python25/Lib/
Traceback (most recent call last):
  File "c:\python25\lib\", line 85, in run_module
    loader = get_loader(mod_name)
  File "c:\python25\lib\", line 456, in get_loader
    return find_loader(fullname)
  File "c:\python25\lib\", line 466, in find_loader
    for importer in iter_importers(fullname):
  File "c:\python25\lib\", line 422, in iter_importers
ImportError: No module named c:/python25/Lib/pdb

Debugger exited abnormally with code 255

If the command line was "python -m pdb", as sugested,
the message should be:

Current directory is c:/
> c:\<module>()
-> i = 1
(Pdb)   1  ->   i = 1
(Pdb) --Return--
> c:\<module>()->None
-> i = 1
(Pdb) The program finished and will be restarted
> c:\<module>()
-> i = 1
Debugger finished

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/", I got:

Current directory is c:/python25/Lib/
Error: does not exist

Debugger exited abnormally with code 1

Using "pdb.bat", I got the same result as "python -m pdb".

Any suggection will be appericiated. Thank you.

reply via email to

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