diff --git a/docs/debugging.md b/docs/debugging.md index d9d04208f..634572068 100644 --- a/docs/debugging.md +++ b/docs/debugging.md @@ -8,3 +8,11 @@ $ python scripts/helper.py shell $LIB_NAME # runs /bin/bash within container $ bash /src/oss-fuzz/$LIB_NAME/build.sh # to run the build script manually ``` +## 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 +```