diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 46aaab3f2e36ca1143248c5e713c17323db3f2cb
parent 526d26fdb2c332532c4ec3b17d60483cd31c028b
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Thu, 21 Oct 2021 21:36:28 +0200

add valgrind notes to TESTING.md

Diffstat:
MTESTING.md | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/TESTING.md b/TESTING.md @@ -2,6 +2,22 @@ This file holds notes for testing purposes. +## Valgrind + +Use Valgrind on a build with debug symbols to discover memory issues: +```bash +mkdir -p tmp-journal +make debug +valgrind --leak-check=full ./diary tmp-journal/ 2>log.txt +``` + +## Compile with Debug Symbols + +To make a build with debug symbols use the `debug` target: +```bash +make debug +``` + ## Send stderr to File Send stderr to a file for debugging: