# Debugging Macaulay2 using Valgrind

**Note:** this Dockerfile is experimental an may not work all the time. Improvements, for instance towards automating memory leak checks, are welcome.

1. Compile Macaulay2 in a container:
```
make build
```

2. Run Macaulay2:
```
make run
```
