home *** CD-ROM | disk | FTP | other *** search
/ Really Useful CD 1 / ReallyUsefulCD1.iso / extras / progutils / trace / _trace / _help next >
Encoding:
Text File  |  1991-01-18  |  1.0 KB  |  25 lines

  1.  
  2. ****************************************************************************
  3. *                                                                          *
  4. *                          T R A C E   U T I L I T Y                       *
  5. *                                                                          *
  6. ****************************************************************************
  7.  
  8. ⌐ 1991 P. Goodwin
  9.  
  10. 'tracef' already exists in the RISC-OS library, but it only directly prints
  11. which isn't terribly useful. My version of 'tracef' outputs to environment
  12. variables. The application !Trace reads these variables, and displays them,
  13. along with the current time, and the taskname. Since the output is to
  14. environment variables, these remain even if the desktop dies. 
  15.  
  16.   tracef(message-no, format-string, ...);
  17.  
  18. The format string is the standard printf format. The normal expected
  19. parameters should be suppled, for example:
  20.  
  21.   tracef(0, "An index into an array %d", i);
  22.  
  23. DON'T use '\n' in the string!!!
  24.  
  25. The message-no corresponds to one of ten strings (0-9) that !Trace shows.