IntelliTrace Log ( .iTrace ) files and Visual Studio 2010 SP 1– Some Hidden Stuff

IntelliTrace debugging  is only available with Visual Studio 2010 Ultimate Edition, which collects debugging information in background and can be used at any point to time to analysis previous debugging data. IntelliTrace collected debugger information into a trace log file (.iTrace ) that can then be opened and debugged using Visual Studio later.  Size of .iTrace was always a concerns, as it’s take huge amount of your hard drive space and IntelliTrace is on by default. So whenever you are doing F5 debugging in Visual studio .iTrace is getting saved and it’s consuming your hard drive.

Well, before moving forward, I must thank to Larry Guger , Program Manager for IntelliTrace features .  Yesterday  I had a discussion with him on IntelliTrace .  During discussion I found there are several changes on IntelliTrace log saving which has been shifted with Visual Studio 2010 SP1. I have already blogged about few of them over here http://bit.ly/f8awhz. But few hidden stuff was missing which I got to know from Larry only.   In this post I am going  to discussed about those changes.

First of all, “IntelliTrace enabled by default but  IntelliTrace log will not be saved”. what does it mean ?  Let’s navigate to IntelliTrace Setting from Tools > Options > IntelliTrace > Advanced

image

Well, Check out the highlighted area, a new option has been added “Store IntelliTrace recordings in this directory” and by default it’s “Un-Checked”.

So, though IntelliTrace is enabled by default, .iTrace file is not going save in the specified IntelliTrace storage location.  But still you are able to do the IntelliTrace Debugging. Strange !!. Surprised smile  No, you should not be,

If the “Store IntelliTrace recordings in this directory”  option is disabled, Visual Studio creates the temporary IntelliTrace log ( .iTrace ) file in the windows Temp folder ( default : C:\Windows\Temp ) .

image

 

 

This log file will cleaned up automatically once we stopped the debugging. So, you need not to think about unnecessary using of disk space used by IntelliTrace Log files.

Now, you may have one question like. Eye rolling smile “I want the .iTrace file which is getting created on C:\Windows\Temp ? “ Simply Copy Paste ? Confused smile  No ! You can’t  Copy a IntelliTrace File while its begging access by IntelliTrace Process.

If you try to copy a .iTrace file which is being used by Visual Studio, You will get following error .

image

So, how to get the log ?  Well, Visual Studio 2010 SP1 having the features to “Save IntelliTrace log at runtime” from IntelliTrace Even window itself, as highlighted in below image.   Click on the “Save” button to save the log file.

image

Though, your IntelliTrace is not saving .iTrace automatically, you can save the log at any point of time. Yeah it’s a nice features.

Finally, this is a great enhancement,  If you want to save log files all the time, just checked “Store IntelliTrace recordings in this directory" in IntelliTrace settings or you can save the log at any point of time  whenever you think that you need to save it.

Hope this will give you some clear view on the IntelliTrace log file saving enhancement for VS 2010 SP1.

Cheers !

Abhijit

5 thoughts on “IntelliTrace Log ( .iTrace ) files and Visual Studio 2010 SP 1– Some Hidden Stuff

  1. I had a problem last week because of the trace logs… It was eating almost 10 GB from my HD… Good to know that with the new SP 1 I can let the intellitrace ON without further worries.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s