emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging Emacs on ttys


From: Gerd Moellmann
Subject: Debugging Emacs on ttys
Date: 23 Oct 2001 19:46:38 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

Don't know if this is of any value, but it just occurred to me that
it might not be obvious for everyone how to debug Emacs running
on a terminal.  So, here it is:

Open an xterm, and

  $ tty 
    => /dev/ttyp4        # let's say
  $ echo $TERM
    => xterm

(Analogous for other ttys.)

Start a GDB session in Emacs, and

  (gdb) set args -nw -t /dev/ttyp4
  (gdb) set environment TERM xterm
  (gdb) run

Emacs should now run in terminal mode on the xterm, and can be
debugged as usual...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]