emulator.md 1.7 KB


title: "mz-debug emulator" description: Use mz-debug to debug Materialize Emulator environments running in Docker. menu: main:

parent: mz-debug
weight: 20

mz-debug emulator debugs Docker-based Materialize deployments. It collects:

  • Docker logs and resource information.
  • Snapshots of system catalog tables from your Materialize instance.

Requirements

  • Docker installed and running. If Docker is not installed, refer to its official documentation to install
  • A valid Materialize SQL connection URL for your local emulator.

Syntax

mz-debug emulator [OPTIONS]

Options

mz-debug emulator options

{{< yaml-table data="mz-debug/emulator_options" >}}

mz-debug global options

{{< yaml-table data="mz-debug/mz_debug_option" >}}

Output

The mz-debug outputs its log file (tracing.log) and the generated debug files into a directory named mz_debug_YYYY-MM-DD-HH-TMM-SSZ/ as well as zips the directory and its contents mz_debug_YYYY-MM-DD-HH-TMM-SSZ.zip.

The generated debug files are in two main categories: Docker resource files and system catalog files.

Docker resource files

In mz_debug_YYYY-MM-DD-HH-TMM-SSZ/, under the docker/<CONTAINER-ID> sub-directory, the following Docker resource debug files are generated:

{{< yaml-table data="mz-debug/docker_resource_files" >}}

{{% integrations/mz-debug/system-catalog-files %}}

{{% integrations/mz-debug/prometheus-files %}}

{{% integrations/mz-debug/memory-profiles %}}

Example

Debug a running local emulator container

mz-debug emulator \
    --docker-container-id 123abc456def