[Dev] Running Chandler under GDB
bkirsch at osafoundation.org
Mon Mar 7 11:51:48 PST 2005
For those who are interested here are the steps to running Chandler
under gdb to debug Python language , PyLuncene, and WxWidgets bugs.
1. Download and compile the entire Chandler internal and external
source (make DEBUG=1 world):
long and more difficult way - build binaries yourself)
2. From the Chandler/chandler directory edit debug/RunPython or
debug/RunPython.bat on Windows. The contents of the RunPython file will
be platform specific. For OS X change the last line from:
DYLD_FRAMEWORK_PATH=$CHANDLERBIN/debug/Library/Frameworks exec gdb
From the Chandler/chandler directory type './debug/RunChandler' or
'./debug/RunChandler.bat' on Windows.
This will launch gdb and invoke the Python executable for debugging.
In the gdb shell type 'r RunChandler.py' to launch the Chandler
GNU gdb 5.3-20030128 (Apple version gdb-309) (Thu Dec 4 15:41:30 GMT
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
welcome to change it and/or distribute copies of it under certain
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
This GDB was configured as "powerpc-apple-darwin".
Reading symbols for shared libraries ... done
(gdb) r Chandler.py
The Chandler application will now be running under gdb. You can set
or examine the stack just like any other c / c++ application.
Hope this is helpful,
Brian Kirsch - Email Framework Engineer
Open Source Applications Foundation
543 Howard St. 5th Floor
San Francisco, CA 94105
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 2706 bytes
Desc: not available
Url : http://lists.osafoundation.org/pipermail/chandler-dev/attachments/20050307/be7e4e90/attachment.bin
More information about the Dev