home *** CD-ROM | disk | FTP | other *** search
- <html>
- <h1>Debugging</h1>
-
- Vista provides 2 methods of printing trace information. One method is to
- the the function '::print' which displays an error box on the screen
- with some text in it. This stops all multitasking in the machine
- so is useful if you want to stop the task in its tracks.
- <p>
- The ::print function takes a printf style format string and a set
- of variable parameters.
- <p>
- The second way of getting text on the screen is to the '::dprintf'
- function or the 'debug->print' function in a task. These both
- display the text in a window which scrolls to keep the new text
- visible. The debug window requires a template with the name "debug"
- to be present in the templates file. It flickers with every
- line of text written to it so that you can see when new text has appeared.
- <p>
- The dprintf function takes a printf style format string, but does
- not require a '\n' at the end.
- <p>
- <p>
- Of course, the Easy C++ debugger may also be used to debug a Vista program. This
- has been modified to cope with the multi-threading aspects of a Vista
- program.
-