How to debug a driver (UMDF)

For the logging procedure to work, Microsoft's TraceLog needs to be installed.
The package can be found in any of:
- Windows Driver Development Kit (WDK),
- Windows Software Development Kit (SDK),
- Visual Studio

Make sure a device is uninstalled.

Copy entire folder as is, into your c:\ drive and start the tool named
 'traceStart.bat':

 START > RUN > type cmd.exe

 # cd c:\drv_debug
 # traceStart.bat <wdk_path>  <os_arch>  <driver_type>

Sample:

 # traceStart.bat "c:\program files\mswdk" x86 umdf

Plug the device into USB port and perform driver installation, as usual
or perform any other tasks that are making troubles and you wish them to be
logged.

Try disabling and enabling the device in device manager (but do not pull it
off the USB port).

When the bug shows up, stop the logger.

 # traceStop.bat "c:\program files\mswdk" x86 umdf

When the logger stops, it creates the ETL file named "mtdpk.etl".

Any dump files might also be helpful. To find latest ones, check

  %SystemRoot%\LogFiles\WUDF\*.dmp

If one got created in case of your issue. Please send it with the ETL file,
mentioned before.

Zip the files and send to dev@tinyit.pl or over the contact form, that
you can find at the project's website: http://www.tinyit.pl
