Debugging Tools for Windows |
The input and output facilities of the debugger engine can be used for interactive debugger operation and logging. The input usually represents commands and responses that are typed by the user, and the output usually represents information presented to the user or sent to log files.
The debugger engine maintains an input stream and an output stream. Input can be requested from the input stream, and output sent to the output stream.
When the Input method is called to request input from the engine's input stream, the engine will call all the registered input callbacks to inform them that it is waiting for input. It then waits for the input callbacks to provide the input by calling the ReturnInput method.
When output is sent to the engine's output stream, the engine will call the registered output callbacks passing the output to them. When sending output to the output stream, it can be filtered by the client object; in which case, only output callbacks that are registered with particular client objects will receive the output.
The input and output streams are transparently available to the remote clients. Remote clients can request input and send output to the engine's input and output stream, and the engine will call the callbacks registered with remote clients to request input or send output.
For details about using input and output, see Using Input and Output. For more information about client objects and input and output callbacks, see Client Objects.