From the course: Visual Studio: Advanced Debugging Tools
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Change source and PDB for older build - Visual Studio Tutorial
From the course: Visual Studio: Advanced Debugging Tools
Change source and PDB for older build
- [Instructor] Now I'm ready to open this Trace file, this iTrace file, for Branch-01-08, but I haven't switched to that branch in my source control, and that is intentional. I'll double-click on this iTrace file. Now we're looking at the meta data for this Trace. Go to the threads list and start debugging. And I get an error. It tells me, the summary is down here. "The source file is different "from when the module was built. "Would you like the debugger to use it anyway?" No I don't, because the source code is not correct. So what I need to do is say no here, cancel out of this, close Visual Studio, then go over to PowerShell, and run git checkout and check out the correct branch. Now it looks good, so now I can go over here and run that process again. And this time, I have success. I'll go look at my diag session file, and I can see a different list of events from this IntelliTrace session.