aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/debugging.md
blob: 9a07af16d4467bcdf4aa04115c3e0c7ac0bd4f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Debugging Build Scripts

While developing your build script, it may be useful to run bash within the
container:

```bash
$ python infra/helper.py shell $PROJECT_NAME  # runs /bin/bash within container
$ compile                                     # run compilation manually
```

## Debugging Fuzzers with GDB

If you decide to debug a fuzzer with gdb (which is already installed in base-runner-debug image),
you will need to start a container in privileged mode:

```bash
docker run -ti --privileged -v /tmp/out:/out ossfuzz/base-runner-debug gdb /out/fuzzer_name
```