From 2776503fac2320e84f6d9a6933a7e7472acc9991 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sat, 20 Jul 2019 15:25:30 +0200 Subject: [PATCH] add some debugging tips --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b9b5db7..81c927d 100644 --- a/README.md +++ b/README.md @@ -146,4 +146,17 @@ byte strings (i.e. UTF-8). Put all UI stuff into `ncdc` (ncurses discord client), and use `wchar_t` there for displaying purposes, along with the wide character functions of ncurses. +You can valgrind the application like so: + +```shell +valgrind --log-file=valgrind.log --leak-check=full --undef-value-errors=no ./ncdc/ncdc +``` + +And you should debug the ncurses application by attaching to it from another +terminal: + +```shell +$ gdb --pid=$(pidof ncdc) +``` + Happy Hacking!