[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 "test.py", which contained only
one
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\pdb.py
test.py", I got the following error message:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Current directory is c:/python25/Lib/
Traceback (most recent call last):
File "c:\python25\lib\runpy.py", line 85, in run_module
loader = get_loader(mod_name)
File "c:\python25\lib\pkgutil.py", line 456, in get_loader
return find_loader(fullname)
File "c:\python25\lib\pkgutil.py", line 466, in find_loader
for importer in iter_importers(fullname):
File "c:\python25\lib\pkgutil.py", line 422, in iter_importers
__import__(pkg)
ImportError: No module named c:/python25/Lib/pdb
Debugger exited abnormally with code 255
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
If the command line was "python -m pdb test.py", as sugested,
the message should be:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Current directory is c:/
l
n
c
q
> c:\test.py(1)<module>()
-> i = 1
(Pdb) 1 -> i = 1
[EOF]
(Pdb) --Return--
> c:\test.py(1)<module>()->None
-> i = 1
(Pdb) The program finished and will be restarted
> c:\test.py(1)<module>()
-> i = 1
(Pdb)
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/pdb.py test.py", I got:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Current directory is c:/python25/Lib/
Error: test.py does not exist
Debugger exited abnormally with code 1
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Using "pdb.bat test.py", I got the same result as "python -m pdb
test.py".
Any suggection will be appericiated. Thank you.
- Cannot run PDB properly in emacs 22.1.1 on windows-xp,
roc lee <=