[PD-dev] [PD] Fwd: external help, please

Dan Wilcox danomatika at gmail.com
Sun Feb 25 16:56:12 CET 2018


On newer macs, use lldb.

> On Feb 25, 2018, at 12:00 PM, pd-dev-request at lists.iem.at wrote:
> 
> #3 gdb
> your code crashes? or does something bonkers? gdb to the rescue!
> gdb can be a tricky beast, and there is much to learn, but even if you
> only use the "backtrace" feature, you get at least an idea which line
> causes the crash (which can help tremendously).
> two things to keep in mind:
> a) you must compile the code to be debugged with "-g", so the debugging
> symbols don't get stripped away.
> for whatever reasons, the pd-lib-builder Makefile doesn't set this by
> default (most likely size- or speed-constraints; there was some
> discussion, i don't remember the details), unless you build with "make
> alldebug"
> b) you should run Pd with "-nrt" inside the debugger, unless you want a
> stream of "watchdog: signaling Pd" message to garble all your output.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20180225/8173d554/attachment.html>


More information about the Pd-dev mailing list