Debugging Preprocessor commands

Debugging Preprocessor commands

Postby xProgrammer » Mon Jul 30, 2007 9:59 am

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
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Re: Debugging Preprocessor commands

Postby Enrico Maria Giordano » Mon Jul 30, 2007 10:17 am

Have a look at /p [x]Harbour compiler switch.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Thanks

Postby xProgrammer » Mon Jul 30, 2007 12:16 pm

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)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: jair and 47 guests