FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Debugging Preprocessor commands
Posts: 464
Joined: Tue May 16, 2006 07:47 AM
Debugging Preprocessor commands
Posted: Mon Jul 30, 2007 09: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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Debugging Preprocessor commands
Posted: Mon Jul 30, 2007 10:17 AM

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

EMG

Posts: 464
Joined: Tue May 16, 2006 07:47 AM
Thanks
Posted: 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)

Continue the discussion