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!