Time Travel Debugging

Time Travel Debugging allows you to record the execution of code in an application and replay it, either forward or backward, so that you can understand the condition that leads to a specific bug. Visual Studio 2019 Enterprise Edition added this feature to help developers perform reverse debugging on a project hosted on the cloud.

To perform Time Travel Debugging, follow these steps:

  1. Open the project in Visual Studio 2019 Enterprise Edition. Make sure that you have the same version of the source code that has been deployed to your Azure Virtual Machine.
  2. From the Visual Studio editor, select the Debug | Attach Snapshot Debugger... menu, as shown in the following screenshot:

  1. This will open the following Attach Snapshot Debugger window:

  1. Select the desired Azure resource and Azure Storage account and click the Attach button to continue.
  2. Create a snap point by selecting the code that needs to be debugged and then clicking Start Collection.
  3. When it completes creating the snap point, you can enable Time Travel Debugging for it.
  4. Once done, click View Snapshot.

Now, you will be allowed to step forward and backward in order to debug the collected snapshot and find the issue in your code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.151.141