Introduction to IntelliTrace Features#
Using IntelliTrace to record and track the execution history of code can shorten the time spent debugging applications and uncover potential bugs in the program because:
• Records specific events
• Examines related code, data displayed in the "Locals" window during debugging events, and function call information
• Debugs errors that are difficult to reproduce or occur in deployment
IntelliTrace is available in Visual Studio Enterprise (but not in Professional or Community editions).
Creating an Application#
static void Main(string[] args)
{
FileStream fs = File.Create("WordSearchInputs.txt");
fs.ReadByte();
fs.Close();
File.Delete("WordSearchInputs.txt");
Console.WriteLine("done");
}
Start Debugging and View IntelliTrace Events#
• Debug > Windows > IntelliTrace Events
• In the Diagnostic Tools window, find the Events tab
Historical Debugging
Diagnosing Issues After Deployment#
IntelliTrace Standalone Collector for Visual Studio 2022
https://visualstudio.microsoft.com/en/downloads
Or copy the collector to the remote server from the installation directory
\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\IntelliTrace
References#
https://docs.microsoft.com/en-us/visualstudio/debugger/intellitrace