[PD-dev] [PD] Trying to track a ghost pdtk_canvas_getscroll call
Hans-Christoph Steiner
hans at at.or.at
Thu Nov 18 23:47:31 CET 2010
On Nov 18, 2010, at 12:50 PM, Mathieu Bouchard wrote:
> On Thu, 18 Nov 2010, Ivica Ico Bukvic wrote:
>
>> I have a real pickle in trying to debug Pd. Namely, when I grep-ed
>> every single instance of pdtk_canvas_getscroll and commented it
>> out, it still gets invoked somehow and I am at a loss how. I know
>> it occurs as many times as there are objects selected that have
>> been moved (so it is definitely per-object)
>
> Use <execinfo.h>'s backtrace() so that sys_vgui prints the name of
> the calling function just before each line is printed while in -d 1
> mode.
That sounds useful, do you have an example of how that you could share?
.hc
----------------------------------------------------------------------------
Programs should be written for people to read, and only incidentally
for machines to execute.
- from Structure and Interpretation of Computer Programs
More information about the Pd-dev
mailing list