Re: [Harbour] HB_TRACE() - How to invoke for PRG and C code separately

2009-12-17 Thread Viktor Szakáts
>> Now I can trace PRG level calls in HBIDE with -D__HB_DEBUG__ define >> which in turn invokes hb_TraceString( [x] ) which in turn executes >> hb_tr_trace( HB_TR_ALWAYS,.. ). >> But still I cannot capture HBQT HB_TRACE( HB_TR_DEBUG, ... ) calls. >> HBQT compiles and shows up this in log: >> gc

Re: [Harbour] HB_TRACE() - How to invoke for PRG and C code separately

2009-12-17 Thread Przemysław Czerpak
On Wed, 16 Dec 2009, Pritpal Bedi wrote: Hi, > Now I can trace PRG level calls in HBIDE with -D__HB_DEBUG__ define > which in turn invokes hb_TraceString( [x] ) which in turn executes > hb_tr_trace( HB_TR_ALWAYS,.. ). > But still I cannot capture HBQT HB_TRACE( HB_TR_DEBUG, ... ) calls. > HBQ

Re: [Harbour] HB_TRACE() - How to invoke for PRG and C code separately

2009-12-16 Thread Pritpal Bedi
Hi Przemysław Czerpak wrote: > > On Wed, 16 Dec 2009, Pritpal Bedi wrote: > -DHB_TR_LEVEL_* is compile time macro used to strip from source code > by PP all HB_TRACE() massages which have bigger priority value. > By default it's set to: HB_TR_LEVEL_WARNING what means that: >HB_TRACE(HB_TR_A

Re: [Harbour] HB_TRACE() - How to invoke for PRG and C code separately

2009-12-16 Thread Viktor Szakáts
> I think that it should be replaced by two new functions: > hb_traceLogLevel( ) -> > hb_traceLog( ) // generate message at hb_traceLogLevel() > and we should add also: > hb_traceLogAt( , ) > which will allow to create PP rules giving the same functionality as we > have now at C level. I

Re: [Harbour] HB_TRACE() - How to invoke for PRG and C code separately

2009-12-16 Thread Przemysław Czerpak
On Wed, 16 Dec 2009, Pritpal Bedi wrote: Hi, > > First build Harbour without HBQT. > > Then build HBQT in a separate pass with custom options. > > Rough instructions for that: > > --- > > set HB_WITH_QT= > > win-make > > cd contrib/hbqt > > set HB_WITH_QT=C:\qt\include > > set HB_USER_CFLAGS=-DTR

Re: [Harbour] HB_TRACE() - How to invoke for PRG and C code separately

2009-12-16 Thread Viktor Szakáts
>> First build Harbour without HBQT. >> Then build HBQT in a separate pass with custom options. >> >> Rough instructions for that: >> --- >> set HB_WITH_QT= >> win-make >> cd contrib/hbqt >> set HB_WITH_QT=C:\qt\include >> set HB_USER_CFLAGS=-DTR_DEBUG_... >> set HB_USER_PRGFLAGS=-D__HB_DEBUG__ >>

Re: [Harbour] HB_TRACE() - How to invoke for PRG and C code separately

2009-12-16 Thread Pritpal Bedi
Hello Viktor Viktor Szakáts wrote: > > First build Harbour without HBQT. > Then build HBQT in a separate pass with custom options. > > Rough instructions for that: > --- > set HB_WITH_QT= > win-make > cd contrib/hbqt > set HB_WITH_QT=C:\qt\include > set HB_USER_CFLAGS=-DTR_DEBUG_... > set HB_U

Re: [Harbour] HB_TRACE() - How to invoke for PRG and C code separately

2009-12-16 Thread Viktor Szakáts
Hi Pritpal, First build Harbour without HBQT. Then build HBQT in a separate pass with custom options. Rough instructions for that: --- set HB_WITH_QT= win-make cd contrib/hbqt set HB_WITH_QT=C:\qt\include set HB_USER_CFLAGS=-DTR_DEBUG_... set HB_USER_PRGFLAGS=-D__HB_DEBUG__ win-make cd ../.. ---

[Harbour] HB_TRACE() - How to invoke for PRG and C code separately

2009-12-15 Thread Pritpal Bedi
Hello All, As per subject. Goal is to trace calls for only the part I am interested in. I do not want entire application tracing. I have tried my level best but am not been successful. Regards Pritpal Bedi -- View this message in context: http://old.nabble.com/HB_TRACE%28%29---How-to-invok

Re: [Harbour] HB_TRACE() - How to Invoke

2008-11-01 Thread Przemyslaw Czerpak
On Fri, 31 Oct 2008, Pritpal Bedi wrote: Hi Pritpal, > How can I invoke > HB_TRACE( HB_TR_DEBUG, ( "hb_gt_wvt_Redraw(%p,%d,%d,%d)", pGT, iRow, iCol, > iSize ) ); > to work ? read doc/tracing.txt Short instruction. Compile the code you want to trace with HB_TR_LEVEL_DEBUG macro, f.e.: set C_

[Harbour] HB_TRACE() - How to Invoke

2008-10-31 Thread Pritpal Bedi
Hello Folks Please do not laugh at my stupidity. How can I invoke HB_TRACE( HB_TR_DEBUG, ( "hb_gt_wvt_Redraw(%p,%d,%d,%d)", pGT, iRow, iCol, iSize ) ); to work ? Also can this debug output be directed to outer debug engines, I mean same as I can achieve with hb_ToOutDebug() function ? Regard