An Experience of Time Travel Debugging

Introduction to Windbg:
Video Demo:

An Example


  • Compile by MSVC (no need to set compile target to DEBUG)
    Since windows executions are certainly compiled by MSVC, WinDBG is a general platform for Time Travel Debugging


In my imagination:

  1. its record relays on capturing after every signle instrction
  2. “debug” only supports browser instead of run, so it is essentially a snapshot browser


I have writen a huge cycle, and found a 200%? of run time, accomplished 4.67 GB trace file by 3.6 billion instructions.