all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cannot run PDB properly in emacs 22.1.1 on windows-xp
@ 2008-01-10 10:07 roc lee
  2008-01-10 20:30 ` Nick Roberts
       [not found] ` <mailman.5998.1199997035.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: roc lee @ 2008-01-10 10:07 UTC (permalink / raw)
  To: help-gnu-emacs

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-01-14 11:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-10 10:07 Cannot run PDB properly in emacs 22.1.1 on windows-xp roc lee
2008-01-10 20:30 ` Nick Roberts
     [not found] ` <mailman.5998.1199997035.18990.help-gnu-emacs@gnu.org>
2008-01-11  7:00   ` roc lee
2008-01-11 10:59     ` Nick Roberts
2008-01-11 13:03       ` Thierry Volpiatto
2008-01-11 15:30       ` Eli Zaretskii
     [not found]     ` <mailman.6024.1200049214.18990.help-gnu-emacs@gnu.org>
2008-01-14 10:53       ` roc lee
2008-01-14 11:55         ` Nick Roberts

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.