Changeset View
Changeset View
Standalone View
Standalone View
doc/developer-notes.md
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | |||||
Run configure with `--enable-debug` to add additional compiler flags that | Run configure with `--enable-debug` to add additional compiler flags that | ||||
produce better debugging builds. | produce better debugging builds. | ||||
### Compiling for gprof profiling | ### Compiling for gprof profiling | ||||
Run configure with the `--enable-gprof` option, then make. | Run configure with the `--enable-gprof` option, then make. | ||||
With `cmake` and `ninja`: | |||||
``` | |||||
cmake -GNinja .. -DENABLE_HARDENING=OFF -DENABLE_PROFIILING=gprof | |||||
``` | |||||
### debug.log | ### debug.log | ||||
If the code is behaving strangely, take a look in the debug.log file in the data directory; | If the code is behaving strangely, take a look in the debug.log file in the data directory; | ||||
error and debugging messages are written there. | error and debugging messages are written there. | ||||
The `-debug=...` command-line option controls debugging; running with just `-debug` or `-debug=1` will turn | The `-debug=...` command-line option controls debugging; running with just `-debug` or `-debug=1` will turn | ||||
on all categories (and give you a very large debug.log file). | on all categories (and give you a very large debug.log file). | ||||
▲ Show 20 Lines • Show All 700 Lines • Show Last 20 Lines |