From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: roc lee Newsgroups: gmane.emacs.help Subject: Cannot run PDB properly in emacs 22.1.1 on windows-xp Date: Thu, 10 Jan 2008 02:07:21 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199974951 15519 80.91.229.12 (10 Jan 2008 14:22:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2008 14:22:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 10 15:22:52 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JCyJ2-0006hQ-29 for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2008 15:22:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCyIe-0004kJ-Dk for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2008 09:22:28 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n22g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 67 Original-NNTP-Posting-Host: 218.240.1.2 Original-X-Trace: posting.google.com 1199959642 22539 127.0.0.1 (10 Jan 2008 10:07:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 10 Jan 2008 10:07:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n22g2000prh.googlegroups.com; posting-host=218.240.1.2; posting-account=TbhHLwoAAAD6xsCvC9eVlynZFJ7J_7cf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155204 X-Mailman-Approved-At: Thu, 10 Jan 2008 09:19:36 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50625 Archived-At: 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)() -> i = 1 (Pdb) 1 -> i = 1 [EOF] (Pdb) --Return-- > c:\test.py(1)()->None -> i = 1 (Pdb) The program finished and will be restarted > c:\test.py(1)() -> 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.