all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: roc lee <roc.lee.80@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Cannot run PDB properly in emacs 22.1.1 on windows-xp
Date: Tue, 15 Jan 2008 00:55:52 +1300	[thread overview]
Message-ID: <18315.19912.926633.362351@kahikatea.snap.net.nz> (raw)
In-Reply-To: <69476064-a94f-43af-8a90-61fbf6087037@e23g2000prf.googlegroups.com>

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

Perhaps then we should make the change below.  Does this workd for you?
Does it work for anybody else with Python on Windows?

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



*************** and source-file directory for your debug
*** 1622,1628 ****
  
      output))
  
! (defcustom gud-pdb-command-name "pdb"
    "File name for executing the Python debugger.
  This should be an executable on your path, or an absolute file name."
    :type 'string
--- 1622,1631 ----
  
      output))
  
! (defcustom gud-pdb-command-name 
!   (if (eq system-type 'windows-nt)
!       "python -u -m pdb"
!     "pdb")
    "File name for executing the Python debugger.
  This should be an executable on your path, or an absolute file name."
    :type 'string

      reply	other threads:[~2008-01-14 11:55 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
2008-01-14 11:55         ` Nick Roberts [this message]

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=18315.19912.926633.362351@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=help-gnu-emacs@gnu.org \
    --cc=roc.lee.80@gmail.com \
    /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.