Resources

Time Travel Debug for VS Code

Today, we’re happy to announce that Time Travel Debugging can now be part of your Visual Studio Code (VS Code) workflow via the Time Travel Debug for C/C++ extension.

Time Travel Debug for C/C++ places superior Time Travel Debugging capabilities at the fingertips of developers using VS Code. By enabling developers to time travel forward and backward through code execution flow it:

  1. provides full visibility into the state of code at any point in its execution.
  2. makes it much easier to understand complex code.
  3. accelerates root cause analysis and identification.
  4. speeds up bug fixing.

By debugging this way, programmers can conduct effective root-cause analysis (without needing to predict ahead of time what to log), and avoid disruptive redeployments.

Time Travel Debug extension for time travel debugging in Visual Studio Code

Here’s a summary of the key feature capabilities added to VS Code:

  • Time Travel Debugging (aka Reverse Debugging)
  • Navigate backward and forward through code execution
    Reverse Step In/Out/Over joins the familiar Step In/Out/Over
  • Launch, Attach, or Replay a LiveRecorder recording
  • Continue and Reverse Continue, stopping at Breakpoints / Conditional Breakpoints / Watchpoints
  • Inspect global and local variable values at any point in your program’s execution history
  • Timeline - visually navigate and zoom through the execution flow
  • Bookmarks - set bookmarks at any point in your program’s execution history. These appear on the timeline and can be easily jumped to
  • Undo your last navigation action
  • Evaluate expressions and call functions in the Debug Console at any point in your program’s execution history

Why Visual Studio Code?

Visual Studio Code is the most popular code editor from Microsoft for C++ development.

Most Popular IDE-Editor for C++ development, Jetbrains

[Source: The State of Developer Ecosystem 2021 - JetBrains]

Making VS Code better for developers

Microsoft’s IDE provides a rich development environment, including debugging capabilities such as variable inspection, stepping into code, and displaying the call stack. The great thing about VS Code is that it is highly extensible. With this integration we’ve taken advantage of that extensibility, and by adding Time Travel Debugging superpowers, we’ve made it substantially quicker and easier to understand complex code bases and the conditions that led to a specific error.

Prerequisites for this extension

  • Visual Studio Code 😉
  • Requires an existing copy of UDB Time Travel Debugger 6.5 or later (available as a free trial)

Give it a try and let us know what you think! 

Get the extension

We welcome feedback and feature requests, so join our VS Code Community or leave us a review on the VS Code Marketplace.

UDB and Time Travel Debug extension for VS Code - try it now