WinDriver's Debug Monitor is an application program that logs detailed
debugging information from the WinDriver kernel.
wddebug (found in the WinDriver/util directory) is a console-mode
version of this utility, for Windows, Windows CE, Mac OS X, Linux, Solaris, and
VxWorks; this version also supports GUI execution on Windows CE.
The Debug Monitor has an additional version — wddebug_gui —
which is a fully GUI version for Windows, Mac OS X, and Linux. For a
description of wddebug_gui refer to
Technical Document #12.
A detailed description of both versions of the Debug Monitor utility can be
found in the
WinDriver User's Manual.
This document describes the wddebug
console-mode usage and
Windows CE GUI usage for the
latest WinDriver version.
Note: The Windows CE GUI usage is supported only beginning with version 10.0.1
of WinDriver.
wddebug console-mode usage
wddebug [<driver_name>] [<command>] [<level>] \
[<sections>]
- <driver_name>: The name of the driver to which to apply
the command. The driver name should be indicated without the driver
file's extension; it can be either the default driver name —
windrvr6 / WinDriver /
windrvr, depending on the OS and the WinDriver version — or the name of your renamed
WinDriver driver module; (for information regarding how to rename the
driver, refer to the
WinDriver User's Manual).
- <command>: The Debug Monitor command to execute:
The following options are applicable only to the on and dbg_on
activation commands:
- <level>: The debug trace level to set; can be any of the
following:
ERROR, WARN, INFO, TRACE
The default trace level is ERROR.
- <sections>: The debug sections to set; these sections
determine what part of the WinDriver API you wish to monitor. For a
full list of all supported debug sections, run wddebug help to
view the usage instructions. The default debug sections flag is
ALL, which sets all the supported
debug sections.
Usage examples:
- wddebug on TRACE ALL
Turn the Debug Monitor on with the highest trace level for all
sections.
Note: The ALL can be omitted from
the command above, since this is the default debug section.
- wddebug dump
Dump debug messages continuously, until the user selects to stop.
- wddebug off
Turn the Debug Monitor off.
- wddebug help
Display the wddebug usage instructions. This is equivalent to
running wddebug with no arguments, on all platforms except
Windows CE.
wddebug Windows CE GUI usage
On Windows CE, you can log debug messages to a specific log file by running
wddebug without any arguments. This method is designed to enable debug
logging on Windows CE platforms that do not have a command-line prompt. On such
platforms, you can activate debug logging by double-clicking the wddebug
executable; this is equivalent to running the application with no arguments
from a command-line prompt.
When executing wddebug without arguments, the user is informed, via a
GUI message box, that log messages will be stored in a predetermined log file
— wdlog.txt in the root Windows CE directory. If the user selects
to continue, debug logging is turned on with trace level
TRACE and debug sections
ALL, and the Debug Monitor begins dumping
debug messages to the wdlog.txt log file. The user can stop the logging
and turn off debug logging, at any time, via a dedicated GUI message box.
Back to Top
|