From 08636bdc3bd8b947a90e26bae5eb3df3c9b79889 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Tue, 23 Apr 2019 15:27:43 -0400 Subject: [PATCH] add instructions for debugging --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 2bc9f1e..651f669 100644 --- a/README.md +++ b/README.md @@ -267,3 +267,17 @@ Qt5Widgets.dll * Use of input in python, where should never be used except in poikilos.py and minetestinfo.py for first-time setup or when `interactive_enable` is `True` + +### C++ Debugging +These steps are only needed for debug builds: +* build minetest with --debug option +* cd to linux-minetest-kit/minetest/bin directory +* type: + `gdb minetest` +* After the symbols finish loading, complete the following within gdb: + `run` + * If the program terminates, gdb will tell you what debug symbol + packages are needed for your distro. + * When you are done debugging, type: + quit +* Try debugging again after the proper packages are installed.