From: roc lee <roc.lee.80@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Cannot run PDB properly in emacs 22.1.1 on windows-xp
Date: Thu, 10 Jan 2008 02:07:21 -0800 (PST) [thread overview]
Message-ID: <aec18096-5c86-4535-99bb-660673b9ca8f@n22g2000prh.googlegroups.com> (raw)
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.
next reply other threads:[~2008-01-10 10:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-10 10:07 roc lee [this message]
2008-01-10 20:30 ` Cannot run PDB properly in emacs 22.1.1 on windows-xp 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
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=aec18096-5c86-4535-99bb-660673b9ca8f@n22g2000prh.googlegroups.com \
--to=roc.lee.80@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).