run: Make it easy to run under gdb and document usage

Having a fast and easy way to run the daemon under gdb can be beneficial
for debugging. For that start the run script with FBD_GDB=1.
This commit is contained in:
Evangelos Ribeiro Tzaras
2022-11-03 19:44:07 +01:00
parent 94001bba78
commit 99fc8c2165
2 changed files with 13 additions and 1 deletions
+7
View File
@@ -48,6 +48,13 @@ To run the daemon use
```sh ```sh
_build/run _build/run
``` ```
To run under gdb use
``` sh
FBD_GDB=1 _build/run
```
You can introspect and get the current theme with You can introspect and get the current theme with
```sh ```sh
+6 -1
View File
@@ -8,5 +8,10 @@ FEEDBACK_THEME=${FEEDBACK_THEME:-"${ABS_SRCDIR}/data/default.json"}
export FEEDBACK_THEME export FEEDBACK_THEME
export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data" export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data"
if [ "${FBD_GDB}" = 1 ]; then
echo "Running calls under gdb"
WRAPPER="gdb --args"
fi
set -x set -x
exec "${ABS_BUILDDIR}/src/feedbackd" "$@" exec ${WRAPPER} "${ABS_BUILDDIR}/src/feedbackd" "$@"