From the course: Visual Studio: Advanced Debugging Tools

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

View snapshots in historical debugging

View snapshots in historical debugging - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

View snapshots in historical debugging

- [Narrator] What do you say we take a look at how to work with snapshots when we're historical debugging? So, the first step is to change some options. Choose this third option here, InteliTrace snapshots, and we'll start capturing the snapshots and we want to leave this checked. Collect snapshots on exception events. We'll look at that later in the chapter. Then before we debug the code, let's think about what we know about snapshots. A snapshot is taken when you hit a break point or when you step through a line of code in the debugger. And when you take a snapshot, it grabs the application state and stores it in the iTrace file. Now in the last demo, I stepped through a lot of code. Maybe 60 or 80 lines of code, and I don't want to see all that in this demo. So what I've done is added some extra breakpoints to my code. There's several break points in this file. One here on line 10 just before we calculate the first…

Contents