Using DebugView to see Loader Snaps


  • I was trying to diagnose loading problems on a customer machine, used GFlags to raise 'ShowSnaps' and tried to capture the output with DebugView - with no success.

    ShowSnaps causes the windows loader to internally call LdrpLogDbgPrint - is this flavour of DbgPrint not captured by DebugView?  It would be immensely useful if it was.
    Thursday, November 20, 2014 6:41 AM

All replies

  • You can verify this locally:  in gflags / image files / image = 'calc.exe',   check ' Show Loader Snaps', then run DebugView and afterwards Calculator.  Nothing appears on the log, regardless of which items you check on the 'capture' menu.
    Thursday, November 20, 2014 11:39 PM
  • this is so old school. Use xperf ( to capture the image load data (also with callstacks:

    xperf -on PROC_THREAD+LOADER -stackwalk ImageLoad+ImageUnload -buffersize 1024 -MaxFile 1024 -FileMode Circular && timeout -1 && xperf -d diagImageLoad.etl

    Friday, November 21, 2014 8:28 AM
  • You can also launch the executable with WinDbg to see the logs.
    Friday, June 7, 2019 10:19 AM