Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Overview

Welcome to the CodeTracer's getting started section. This guide will help you understand how to record and replay programs in each of the supported programming languages.

Core Concept: Record and Replay

Unlike traditional debuggers that attach to a running process, CodeTracer works by first recording your application's execution into a trace file. This trace captures everything that happens during the run.

Once a recording is made, you can replay it as many times as you need in the CodeTracer GUI. This allows you to inspect the application's state at any point in time, move forwards and backwards through the execution, and use powerful features like tracepoints without having to run your application again.

Think of it like recording a video of your program's execution that you can then analyze in detail.

How to Use This Guide

This guide is structured to help you get started quickly and then dive deeper into the features that interest you.

  • Instructions on how to launch CodeTracer using each of the languages listed below
    • Noir: Examples and steps how to trace a Noir program.
    • Stylus: Examples and steps how to trace a Stylus.
    • Python: Steps for installing the recorder, creating a trace, and replaying it with your interpreter.
    • Ruby: Examples and steps how to trace a Ruby program.
    • WASM: Examples and steps how to trace a WASM program.