home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / vista_1 / !Manual_manual_debug < prev    next >
Encoding:
Text File  |  1996-01-08  |  1.0 KB  |  26 lines

  1. <html>
  2. <h1>Debugging</h1>
  3.  
  4. Vista provides 2 methods of printing trace information.  One method is to
  5. the the function '::print' which displays an error box on the screen
  6. with some text in it.  This stops all multitasking in the machine
  7. so is useful if you want to stop the task in its tracks.
  8. <p>
  9. The ::print function takes a printf style format string and a set
  10. of variable parameters.
  11. <p>
  12. The second way of getting text on the screen is to the '::dprintf'
  13. function or the 'debug->print' function in a task.  These both
  14. display the text in a window which scrolls to keep the new text
  15. visible.  The debug window requires a template with the name "debug"
  16. to be present in the templates file.  It flickers with every
  17. line of text written to it so that you can see when new text has appeared.
  18. <p>
  19. The dprintf function takes a printf style format string, but does
  20. not require a '\n' at the end.
  21. <p>
  22. <p>
  23. Of course, the Easy C++ debugger may also be used to debug a Vista program.  This
  24. has been modified to cope with the multi-threading aspects of a Vista
  25. program.
  26.