From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#13494: output from pdb++ never appears in *gud-FILE* buffer Date: Mon, 9 Sep 2019 03:12:06 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="57184"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 13494@debbugs.gnu.org To: Matt McClure Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 09 03:13:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i78F2-000Ek3-Ji for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Sep 2019 03:13:16 +0200 Original-Received: from localhost ([::1]:51526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i78F1-0006wx-C4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Sep 2019 21:13:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52264) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i78Et-0006wb-VS for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2019 21:13:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i78Es-0004Il-0V for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2019 21:13:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58765) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i78Eo-0004Dl-KP for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2019 21:13:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i78Eo-0005k8-DH for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2019 21:13:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Sep 2019 01:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13494 X-GNU-PR-Package: emacs Original-Received: via spool by 13494-submit@debbugs.gnu.org id=B13494.156799154522026 (code B ref 13494); Mon, 09 Sep 2019 01:13:02 +0000 Original-Received: (at 13494) by debbugs.gnu.org; 9 Sep 2019 01:12:25 +0000 Original-Received: from localhost ([127.0.0.1]:39353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i78ED-0005jB-9p for submit@debbugs.gnu.org; Sun, 08 Sep 2019 21:12:25 -0400 Original-Received: from mail-pl1-f177.google.com ([209.85.214.177]:39257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i78EB-0005iu-BR for 13494@debbugs.gnu.org; Sun, 08 Sep 2019 21:12:23 -0400 Original-Received: by mail-pl1-f177.google.com with SMTP id bd8so5774255plb.6 for <13494@debbugs.gnu.org>; Sun, 08 Sep 2019 18:12:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=M58QoXVJjr57OvkfzxDUBB+rAhY08OxkDe6Bk/LtrXw=; b=UQ9zBQWQ5jiIxBrR+bi5V+AdbhXxqfewSMVQsfn0W3gjZKgLGEaKDm8aaUSIlkMKH/ 31Hmqw2cjWbMQP13FStY40ZSvtN66q5WpJRqZFJ93Q+X9AetxYI41EYTVugETSMa+PPn ecSkC2auTpPSLSVHP5z6SNb2wLERXIaABH9WvrzOlgDfR4xPYlIkjvVLJ1woaYF89xPS IjIoeZHHdzDgQrFn3FGJMAl4zxIkYlR9ofbaOhxyg2W4Puqn3v5gu1O8CANh2AT7E5/Q ggUdINyc6mribovSnfwx67I88qW127nD7wk9Sg9LzbLwMkgTCV7yaf3UQpvyHrW2CZB1 jlOw== X-Gm-Message-State: APjAAAVI42uSgTixXz4WYF4ey9cz+11rtMV9NUEYBEKHdMSOJo5+2DC1 oQlkdDHemWOK7yJTXmdwJRLXkzRToN5gm7vntls= X-Google-Smtp-Source: APXvYqxduUq1dK6tNPD28PBG4Dj9R47Af5545ZKuBITzP1D1USN82vr3S0Hp9VzGKq/bxK1Tmy9jsuUOxjQ0iIhoJVw= X-Received: by 2002:a17:902:a418:: with SMTP id p24mr22142639plq.259.1567991537603; Sun, 08 Sep 2019 18:12:17 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166317 Archived-At: Matt McClure writes: > I'm trying to use pdb++ [1] in Emacs 24.2.50.1 (x86_64-apple-darwin, > NS apple-appkit-1038.36) of 2012-09-27 on bob.porkrind.org. > > With pdb++ in my Python virtualenv, I type: > > M-x pdb RET python -mpdb foo.py > > The *gud-foo.py* buffer says: > > Current directory is /Users/mlm/tmp/ > > And it never prints pdb++'s output. I expect to see: > > > /Users/mlm/tmp/foo.py(1)() > -> """Demonstrating Emacs, pdb++ incompatibility.""" > (Pdb++) > > I stepped into Emacs's pdb function, and saw that sometimes the output > from pdb++ appears in the buffer as I step through. Sometimes it > appears in color. Sometimes the corresponding color escape sequences > appear literally in the buffer. > > I can work around the problem by disabling colorized pdb++ output with > a ~/.pdbrc.py containing: > > from pdb import DefaultConfig > > class Config(DefaultConfig): > highlight = False > > Still, this seems like an Emacs bug, that it doesn't reliably read the > colorized output and display it in the buffer. I couldn't reproduce this issue on current master. I get the expected output in the *gud-pdb* buffer: Current directory is /Users/skangas/wip/emacs/lisp/ [2] > /Users/skangas/wip/emacs/lisp/foo.py(1)() -> print "foo" (Pdb++) This is on GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G2128)) of 2019-09-08 Can you still reproduce this on a recent version of Emacs, for example the latest Emacs version 26.2? If I don't hear back from you in a couple of weeks, I'll just assume that this was fixed some time in the six years since your report and close this bug. Best regards, Stefan Kangas