Re: [Pyobjc-dev] Debugging PyObjc Apps
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2003-02-01 22:43:20
|
On Saturday, Feb 1, 2003, at 15:23 US/Eastern, Just van Rossum wrote: > I don't think gdb helps all that much when debugging Python. The Python > debugger (bdb.py/pdb.py) is pure Python, so the startup funkiness > shouldn't get in the way there. It helps when something on the compiled side of the bridge crashes... :-) In all seriousness, it can help if you want to catch when a particular method on the standard kit of objects is invoked. In particular, setting a breakpoint on NSException's -raise can be very useful in determining where the app was in the request/response loop when the badness started. At some point, we really should add a 'debug' module to AppKit or Foundation that provides a quick way of starting up pdb and gives some kind of a trivial console type interface for interacting with it. I haven't looked at pdb; does it do remote debugging? b.bum |