Ar an dara lá déag de mí Eanair, scríobh Raymond Wiker:
event-carbon.c defines a variable named
"debug_carbon_events"; is
there a way to set this from inside XEmacs, or must it be done from a
debugger (or by recompiling)?
No; you need something like
$ cd /path/to/xemacs/source/src
$ gdb ./xemacs `pgrep XEmacs`
GNU gdb 6.3.50-20050815 (Apple version gdb-477) (Sun Apr 30 20:01:44 GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared
libraries .............. done
/Sources/xemacs-21.5-carbon2-merging/src/9898: No such file or directory.
Attaching to program: `/Sources/xemacs-21.5-carbon2-merging/src/xemacs', process
9898.
Reading symbols for shared libraries
..................................................................++++++++.+..+... done
0x90009817 in mach_msg_trap ()
(gdb) p debug_carbon_events = 1
$1 = 1
(gdb)
This will not be useful if you’ve started the XEmacs in the normal way, by
double clicking in the Finder or typing open /installed/path/to/XEmacs.app ;
you need to have run the XEmacs binary from XEmacs.app/Contents/MacOS/XEmacs
from Terminal, if you want to have the debug output go somewhere you can
read it.
(I would be enchanted to hear of differing information from people more
comfortable with Carbon and Cocoa.)
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghe, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta