Peekaboo/scripts/poltergeist-debug.sh
Peter Steinberger e18ce0f521 Fix EXC_BAD_ACCESS crash in SpaceManagementService initialization
Changed connectionLock from a stored property to a lazy property to avoid
initialization timing issues in @MainActor classes. This prevents the
crash that occurred when NSLock() was initialized during class instantiation.
2025-07-29 23:16:54 +02:00

20 lines
502 B
Bash
Executable File

#!/bin/bash
# Debug wrapper for Poltergeist
set -x # Enable debug output
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PROJECT_DIR="$( cd "$SCRIPT_DIR/.." && pwd )"
echo "Script dir: $SCRIPT_DIR"
echo "Project dir: $PROJECT_DIR"
echo "Current dir: $(pwd)"
cd "$PROJECT_DIR"
echo "Changed to: $(pwd)"
echo "Config file exists: $(test -f poltergeist.config.json && echo YES || echo NO)"
echo "Running: node ../poltergeist/dist/cli.js $@"
exec node ../poltergeist/dist/cli.js "$@"