> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.latch.bio/llms.txt
> Use this file to discover all available pages before exploring further.

# Debugging Snakemake

## Local Development

When debugging a Snakemake workflow, it's helpful to run the JIT step locally instead of re-registering your workflow every time you want to test a change. To address this, the Latch SDK supports local development for Snakemake workflows.

If you are unfamiliar with the `latch develop` command, please read about [Developing and Debugging](/workflows/sdk/testing-and-debugging-a-workflow/development-and-debugging) before continuing.

***

Run the following command to use `latch develop` with your Snakemake workflow:

```console theme={null}
$ latch develop . --snakemake
```

To run the JIT task, create a test file that calls the task function defined in `snakemake_jit_entrypoint.py` with test inputs.

For example:

```console theme={null}
$ cat scripts/dry_run.py
```

```python theme={null}
from snakemake_jit_entrypoint import your_workflow_name_jit_register_task

your_workflow_name_jit_register_task(
    read1="latch:///read1.txt",
    read2="latch:///read2.txt",
)

```

You can execute the script in your `latch develop` session like so:

```console theme={null}
$ python3 scripts/dry_run.py
```

**Note**: If you are running into an `ImportError`, be sure to use the version of Python in which the Latch SDK was installed.
