oss-fuzz/docs/debugging.md

19 lines
560 B
Markdown
Raw Normal View History

2016-10-04 18:54:45 +00:00
## Debugging Build Scripts
While developing your build script, it may be useful to run bash within the
container:
```bash
$ python scripts/helper.py shell $LIB_NAME # runs /bin/bash within container
$ compile # run compilation manually
2016-10-04 18:54:45 +00:00
```
2016-10-04 18:57:14 +00:00
## Debugging Fuzzers
If you decide to debug a fuzzer with gdb (which is already installed in libfuzzer-runner image),
you will need to start a container in privileged mode:
```bash
docker run -ti --privileged -v /tmp/out:/out -t ossfuzz/libfuzzer-runner /out/some_fuzzer_name
```