1. Download and compile the entire Chandler internal and external source (make DEBUG=1 world):
http://wiki.osafoundation.org/bin/view/Chandler/BuildingChandler (The 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:
PYTHONPATH=$CHANDLERHOME:$CHANDLERHOME/parcels PYTHONHOME=$CHANDLERBIN/debug/Library/Frameworks/Python.framework/Versions/$PYTHON_VER DYLD_LIBRARY_PATH=$CHANDLERBIN/debug/lib:$CHANDLERBIN/debug/db/lib DYLD_FRAMEWORK_PATH=$CHANDLERBIN/debug/Library/Frameworks exec $CHANDLERBIN/debug/Library/Frameworks/Python.framework/Versions/$PYTHON_VER/Resources/Python.app/Contents/MacOS/Python $*
to
PYTHONPATH=$CHANDLERHOME:$CHANDLERHOME/parcels PYTHONHOME=$CHANDLERBIN/debug/Library/Frameworks/Python.framework/Versions/$PYTHON_VER DYLD_LIBRARY_PATH=$CHANDLERBIN/debug/lib:$CHANDLERBIN/debug/db/lib DYLD_FRAMEWORK_PATH=$CHANDLERBIN/debug/Library/Frameworks exec gdb $CHANDLERBIN/debug/Library/Frameworks/Python.framework/Versions/$PYTHON_VER/Resources/Python.app/Contents/MacOS/Python
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 application.
GNU gdb 5.3-20030128 (Apple version gdb-309) (Thu Dec 4 15:41:30 GMT 2003)
Copyright 2003 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 "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 breakpoints, watchpoints,
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�
(415) 946-3056�
http://www.osafoundation.org
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "Dev" mailing list http://lists.osafoundation.org/mailman/listinfo/dev
