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
|
2016-11-29 19:02:02 +00:00
|
|
|
$ python infra/helper.py shell $PROJECT_NAME # runs /bin/bash within container
|
|
|
|
$ compile # run compilation manually
|
2016-10-04 18:54:45 +00:00
|
|
|
```
|
|
|
|
|
2016-11-02 19:42:00 +00:00
|
|
|
## Debugging Fuzzers with GDB
|
2016-10-04 18:57:14 +00:00
|
|
|
|
2016-12-13 23:07:53 +00:00
|
|
|
If you decide to debug a fuzzer with gdb (which is already installed in base-runner-debug image),
|
2016-10-04 18:57:14 +00:00
|
|
|
you will need to start a container in privileged mode:
|
|
|
|
|
|
|
|
```bash
|
2017-01-06 07:40:13 +00:00
|
|
|
docker run -ti --privileged -v /tmp/out:/out ossfuzz/base-runner-debug gdb /out/<fuzz_target_name>
|
2016-10-04 18:57:14 +00:00
|
|
|
```
|