Skip to main content

Select Trace

You can investigate a trace record (short: trace) of executed code using the "Select Trace" crosshair_red.svg button:

  • Place the keyboard cursor on a piece of code that has executed.
    • You should see the red crosshair crosshair_red.svg show up in two places: the top right of the editor window and in the Trace Details View1.
    • If there is no red crosshair, the selected code has not executed (or its execution has not been recorded).
    • NOTE: Most executed code is decorated ↳ ↱ ƒ.
    • Keywords like if and return cannot currently be selected, however their conditions/arguments can.
  • Click the crosshair crosshair_red.svg or use the Dbux: Select Trace at Cursor command to select.
  • Use repeatedly to select surrounding traces (as shown in the gif above).

Once a trace is selected, the Trace Details View should offer a wide array of relevant information regarding the selected piece of code:

screens/select-trace.gif
caution

A piece of code might have executed multiple times. Make sure you know which execution is selected before drawing conclusions.


  1. You might need to hover over the Trace Details View for buttons to show up. This is a limitation of the VSCode Extension API.