Replay's console is similar to console you know and love in Chrome DevTools, except there are a couple of new tricks.

Fast forwarding to a message ⏩

The biggest new trick is the ability to fast forward and rewind to any message by clicking the blue buttons that appear when hovering on a line in the console.

You can jump between console messages generated from your application, or ones you’ve added with Replay’s print statements feature.

Untitled

Evaluating expressions ➡️

Replay's console terminal lets you evaluate expressions like you would in a browser console. You can think of this like a playground for running JavaScript expressions and operators.

In general, expressions will be evaluated in the global context. When you are paused at a line of code, the terminal will use the current pause frame or selected frame in the call stack.

Type in the console by the >> icon to evaluate an expression.

<aside> 💡 In the example below, we are paused on a specific marker for an instance of line 6 within drawMatrix . Because we are paused, the expression shift evaluates to 275.

Notice the expression evaluates at that moment in time in the console, before the next function execution occurs.

</aside>

Parabola

Parabola

Click the trashcan icon in the console to clear any evaluations and results.

Screen_Recording_2022-01-26_at_9.26.29_AM.mov

Autocomplete ⤵️