Re: [Pyobjc-dev] Re: Subclassing NSCell?
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@cw...> - 2003-05-18 21:41:38
|
On donderdag, mei 15, 2003, at 06:02 Europe/Amsterdam, Mitch Chapman wrote: > On Wednesday, May 14, 2003, at 12:55 PM, Ronald Oussoren wrote: >> I usually look for the right process-id from the shell and then start >> 'gdb /usr/local/bin/pyton THEPID' (THEPID being the process-id). >> >> Are you using the Project Builder templates? These use >> /usr/bin/python unless you change the bin-python-main.m file. > > Well, thanks to the in-line documentation y'all wrote in > bin-python-main.m, > I wasn't having trouble figuring out which python executable to target > with gdb, > or which process ID to attach to. My problem turned out to be that I > wasn't setting > DYLD_FRAMEWORK_PATH properly, so gdb couldn't load the Python dynamic > library. > > With DYLD_FRAMEWORK_PATH set to refer to the system frameworks > directory, > like so: > DYLD_FRAMEWORK_PATH=/Library/Frameworks > gdb was happy again. The procedure of debugging your PyObjC program with gdb should be documented somewhere. I always end up with adding more and more python debug code, even though I know that gdb would help me find the problem much quicker, just because I can never remember how to say the magic words to make gdb work on PyObjC code... -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |