#!/usr/bin/env sh # SPDX-FileCopyrightText: © 2021 Alexandros Theodotou # SPDX-License-Identifier: LicenseRef-ZrythmLicense set -xe export GSETTINGS_SCHEMA_DIR=@SCHEMAS_DIR@ export G_MESSAGES_DEBUG=zrythm export GDK_SYNCHRONIZE=1 user_dir="`gsettings get org.zrythm.Zrythm.preferences.general.paths zrythm-dir | sed s/\'//g`" user_lldb_dir="$user_dir/lldb" date_str=`date +%Y-%m-%d_%H-%M-%S` lldb_out_file="$user_lldb_dir/lldb_$date_str.bt" # TODO test lldb --attach-pid --batch \ --one-line bt \ --one-line-on-crash bt \ --one-line-on-crash quit \ @BIN_DIR@/@PROGRAM_NAME_LOWERCASE@ "$@"