GNU bug report logs - #30044
Emacs: Gud-mode: Debugging with gud: Window switching problem

Previous Next

Package: emacs;

Reported by: Claus Fischer <claus.fischer <at> clausfischer.com>

Date: Tue, 9 Jan 2018 16:28:02 UTC

Severity: normal

Found in version 24.5

Fixed in version 25.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 30044 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: Claus Fischer <claus.fischer <at> clausfischer.com>
Cc: 30044 <at> debbugs.gnu.org
Subject: Re: bug#30044: Emacs: Gud-mode: Debugging with gud: Window switching
 problem
Date: Thu, 11 Jan 2018 20:24:42 -0500
Claus Fischer <claus.fischer <at> clausfischer.com> writes:

> Is it possible to take a gud.el, sprinkle it liberally with some debug
> output, e.g. into Emacs' message buffer or on the terminal, and let me
> load it and wait for the problem to re-occur?

> Does Emacs have some debugging or recording mode for such situations?

This should do it, hopefully it catches all the relevant info.  It will
be printed into a buffer named *trace-output*.

(dolist (fun '(gud-filter gud-display-frame gud-display-line display-buffer))
  (trace-function-background fun))

(defun bug-30044-trace-window-list (&rest _)
  (when (> trace-level 0)
    (trace-values (window-list)
                  (mapcar #'window-prev-buffers (window-list))
                  (mapcar #'window-next-buffers (window-list)))))
(advice-add 'gud-filter :before #'bug-30044-trace-window-list)

(defun bug-30044-trace-current-window (&rest _)
  (when (> trace-level 0)
    (trace-values (selected-window))))
(advice-add 'gud-display-line :before #'bug-30044-trace-current-window)





This bug report was last modified 7 years and 7 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.