error.log

Post Reply
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

error.log

Post by MarcoBoschi »

Stack Calls
===========
Called from REF_VAR(938)
Called from EDITSCHE(93)
Called from VAL_REL2(380)

is it possibile to add "in module <nameofprgfile> ? " information for each row
?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marco, Enrico,

Please modify source\function\errsysw.prg with this code:

Code: Select all

       if ! Empty(ProcName( n ) )
             AAdd( aStack, "   Called from: " + ProcFile( n ) + " => " + Trim( ProcName( n ) ) + ;
                           "(" + NTRIM( ProcLine( n ) ) + ")" )
             cErrorLog += ATail( aStack ) + CRLF
          endif
Notice the use of ProcFile(). Warning: with Harbour it returns an empty string. With xharbour you get the PRG name.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Post by MarcoBoschi »

:D OK ThankYou very much.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

But that may be something specific to Harbour/xHarbour ProcLine() function.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply