all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: roc lee <roc.lee.80@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Cannot run PDB properly in emacs 22.1.1 on windows-xp
Date: Mon, 14 Jan 2008 02:53:20 -0800 (PST)	[thread overview]
Message-ID: <69476064-a94f-43af-8a90-61fbf6087037@e23g2000prf.googlegroups.com> (raw)
In-Reply-To: mailman.6024.1200049214.18990.help-gnu-emacs@gnu.org

On 1月11日, 下午6时59分, Nick Roberts <nick...@snap.net.nz> wrote:
> That's because there isn't a file calledpdbin your path that points to
> c:\python25/Lib/pdb.py (I don't if symbolic links exist in windows-xp).
>
> But you haven't answered my question or tried my other suggestions.

Thank you for your help. I have tried all the method you suggested :)

I can have the PDB worked. I just cannot have it done this
interactively. I mean,
the debug message was not displayed immediately when the debug
command
was inputted, but was thrown out all together after the "q" was
given.:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
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
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Today I found a topic, which gives a clean description about this:
http://www.gnu.org/software/emacs/windows/faq7.html#subproc-buffer

The output of PDB is buffered (by python.exe, not emacs) and cannot
been displayed.

Now it works with this command:
python -u -m pdb test.py

-u     : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x)
         see man page for details on internal buffering relating to '-
u'

Many thanks to you, to Thierry Volpiatto, to Eli Zaretskii.
Thank you for your kindly help :)

>
> --
> Nick                                          http://www.inet.net.nz/~nickrob

  parent reply	other threads:[~2008-01-14 10:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69476064-a94f-43af-8a90-61fbf6087037@e23g2000prf.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.
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.