At 3:56 PM -0500 5/12/05, Dan Williams wrote:
>On Thu, 12 May 2005, Tino Rachui - Sun Germany - Development - Software
>Engineer wrote:
>> now that I built OOo successfully on Mac OS X I would like to debug it
>> a little bit. As an Ex-Windows developer I wonder what is the most
>> comfortable way to do so. Using gdb directly is possible but cumbersome.
>> Is it even possible to use the Xcode front end to gdb and if yes how or
>> what else do the Mac experts on this list suggest?


You should probably also read the following Technical Note :

<http://developer.apple.com/technotes/tn2004/tn2124.html>


>I was only once successfull in debugging OOo with Xcode's UI.
>That involved lots of pain though.  If you prefer a GUI debugger, I'd
>suggest using 'ddd', which while it looks like crap because it uses Motif,
>works fairly well on OS X.  Otherwise its command-line GDB or printf() :)
>
>Dan
>
>http://www.geocities.com/terry_teague/ddd.html


Both Dan and I have used DDD for debugging OOo.


But be aware that I think the version of DDD currently posted on my web
site might be broken on Mac OS X - I haven't had time to fully investigate
if it is a DDD problem or a gdb problem. If you play with it and find
something that would be helpful for me to know, send me an EMail.


I have also NOT tested this version of DDD on Tiger yet.


DDD is available for many platforms, and I have used DDD on Windows, using
Cygwin - it is almost identical in experience to using it on Mac OS X
(except perhaps the problem described above). I haven't tried to debug OOo
with DDD on Windows, nor I believe have I tried to debug anything with DDD
across different platforms, but I believe that is possible, using the
"remote" facilities of DDD. So if you still have a (fast) Windows system
somewhere, this might be an option for you.


>PS - if you really _want_ to use Xcode, the only way I could do it was to
>create a new, empty projet, start to debug it, but then do an 'attach' in
>the debugging console to the soffice.bin PID.  Xcode didn't like that very
>much, but it worked at least once.


I believe this experience has been improved in later versions of Xcode/gdb.

Regards, Terry



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to