Menu

How to capture output of READY TRACE

David Wall
2021-12-15
2021-12-15
  • David Wall

    David Wall - 2021-12-15

    Having compiled a program with READY TRACE. & compiled with -ftraceall - where does the output go & can I redirect it to a file of my choice. ??
    I see part of the output on the screen but that then disappeared & didn't come back.

     
    • Vincent (Bryan) Coen

      If you set up the two environment variables before hand it should be in
      the file trace.log

      COB_SET_TRACE=YES
      COB_TRACE_FILE=/path/trace.log

      See 10.2.3 in the Programmers Guide

      Vince

      On 15/12/2021 01:03, David Wall wrote:

      Having compiled a program with READY TRACE. & compiled with -ftraceall
      - where does the output go & can I redirect it to a file of my choice. ??
      I see part of the output on the screen but that then disappeared &
      didn't come back.

       
  • David Wall

    David Wall - 2021-12-15

    Actually - it's just so slow that it eventually did do what I was expecting - when I finished the program the last part of the trace appeared on the screen -
    How do I capture all of it - maybe a redirection or cobc option ??.

     
  • David Wall

    David Wall - 2021-12-15

    I tried a redirection & that appeared to work for a straight .exe - now to try a .dll.

     
  • David Wall

    David Wall - 2021-12-15

    Thanks Vincent - you'd think it 'might' have been mentioned in passing on page 320 where READY TRACE is - however finding it on page 583 is just as good.
    Much app - I've been doing the redirection to filename.

     

Anonymous
Anonymous

Add attachments
Cancel