[Pyobjc-dev] running gdb against PyObjC based apps
Brought to you by:
ronaldoussoren
|
From: Bill B. <bb...@co...> - 2002-10-16 23:23:20
|
Because the apps use execve() to transfer control to /usr/bin/python,
you can't use gdb directly from ProjectBuilder.
However, you can use gdb!
Start the app such that it gets passed the execve(). Once python takes
control, find the process identifier ### of the process (ps auxwww |
grep 'Web Services Tool').
Then:
gdb /usr/bin/python PID
You will now have a gdb session against that application that actually
works!
It would be nice if the same could be done from within Project Builder,
but I haven't investigated enough to see if it is possible.
b.bum
|