PDA

View Full Version : How to use the tracer build on osx?


olilarkin
11-20-2010, 06:14 AM
I built a tracer version of my plugin, but it doesn't seem to write the text file automatically - anyone know how to make it do it?

oli

Tale
11-21-2010, 10:55 AM
I am not sure, but doesn't Trace() printf things to the stdout? Because then they should appear in your Console.app.

olilarkin
11-22-2010, 02:57 AM
don't think so, log.cpp looks like it should write to a file

Tale
11-22-2010, 03:15 AM
In my Log.cpp the fprintf line is commented out, while printf isn't:

printf("[%d:%s:%d]%s", GetOrdinalThreadID(SYS_THREAD_ID), funcName, line, str);

//WDL_MutexLock lock(&sLogMutex);
//fprintf(sLogFile.mFP, "[%d:%s:%d]%s", GetOrdinalThreadID(SYS_THREAD_ID), funcName, line, str);
//fflush(sLogFile.mFP);

Tale
11-22-2010, 11:43 AM
I have just done a Tracer build of IPlug and my project to see if it would work, and I get loads of trace messages in the Console.app.

olilarkin
11-22-2010, 01:30 PM
Hmm. I tried it today and there was nothing in console.app or the Xcode console. Will have another go tommorrow

olilarkin
12-10-2010, 08:49 AM
realised my problem was because I've done quite a lot of editing to the xcode projects and had neglected to edit the tracer builds