Page 1 of 1

Debugging Preprocessor commands

Posted: Mon Jul 30, 2007 9:59 am
by xProgrammer
I was wondering if there was a way to get the compiler to output the result of preprocessing the source as a means of debugging possible preprocessing bugs?

(If so it might prove useful beyond even xBase code)

I realise that this isn't specifically a FiveWin issue, but I think someone out there must have thought about this before.

Thanks

xProgrammer

Re: Debugging Preprocessor commands

Posted: Mon Jul 30, 2007 10:17 am
by Enrico Maria Giordano
Have a look at /p [x]Harbour compiler switch.

EMG

Thanks

Posted: Mon Jul 30, 2007 12:16 pm
by xProgrammer
Thanks Enrico

And having found out I realised that xBuildW (xHarbour) must automatically invoke /p becuase I have a host of .ppo files (which I had never looked at). - And felt a bit of a goose for having asked the question and not having realised.

xHarbour documentation (nice) doesn't seem to cover compiler switches but I did find it at Harbour Project web site. xBuildW is nice but I guess having always used it (until now) kind of isolates you from what is happening behind the scenes.

Thanks

Doug (xProgrammer)