From the course: Visual Studio: Advanced Debugging Tools

Save an iTrace file while debugging - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

Save an iTrace file while debugging

- [Instructor] One option available in IntelliTrace is to store your IntelliTrace or your iTrace files in a directory on your hard drive by checking this checkbox. And this means that every time you debug a project in Visual Studio, Visual Studio will create a project-specific iTrace file in this directory. And as you can imagine, if you leave this setting on, you could have hundreds of these iTrace files, which can take up a lot of hard drive space. Now there's a couple of ways of mitigating this. One is you can go in and set the maximum amount of disk space per iTrace file in this list. Second, you can go into the folder and delete some of your older iTrace files if you don't need those. I've seen developer computers with hundreds of gigabytes' worth of iTrace files. So you would go in and uncheck this, and then you now, when you debug, you're still going to do historical debugging, but you're not automatically saving those iTrace files. So here's a scenario that may come up. I'm stepping through my code, and at this point, I want to do some historical debugging, so I go in here and I activate historical debugging, and then I realize that this is an interesting bug that I'm looking at, and I want to capture all the information and look at it later. Now it says I've turned off Save All Files in the settings. I have to manually save my iTrace file, and I can do that by going into Debug, IntelliTrace, Save IntelliTrace Session. Pick a folder, and, in this case, it's using the default naming conventions, which I like, so I'll go ahead and just click on Save. And now I have created an ad hoc copy of my iTrace file.

Contents