clan-app: Add pygdb.sh for debugging crashes in webview-lib

This commit is contained in:
Qubasa
2025-07-02 16:00:55 +07:00
parent 7520f202dd
commit ee5510eda6
2 changed files with 17 additions and 48 deletions

5
pkgs/clan-app/pygdb.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
PYTHON_DIR=$(dirname "$(which python3)")/..
gdb --quiet -ex "source $PYTHON_DIR/share/gdb/libpython.py" --ex "sharedlib $WEBVIEW_LIB_DIR/libwebview.so" --ex "run" --args python "$@"