Files
dev/test_debug.sh
T
James PeterandClaude 929fab8d63 feat: add debug logging system and improve TUI conversation history
- Add comprehensive debug logging system with file output
- Implement ScrollView component for better scrolling behavior
- Enhance conversation history with proper text wrapping
- Add browser debugging capabilities
- Improve ephemeral context handling
- Fix message duplication issues
- Add test scripts for debugging

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
2025-08-13 21:08:18 +10:00

37 lines
979 B
Bash
Executable File

#!/bin/bash
# Test the debug flag
echo "Testing debug flag..."
# Check if debug logs directory gets created
DEBUG_LOG_DIR="$HOME/.codex/debug_logs"
# Remove old debug logs if they exist
if [ -d "$DEBUG_LOG_DIR" ]; then
echo "Removing old debug logs..."
rm -rf "$DEBUG_LOG_DIR"
fi
# Run coder with debug flag in exec mode (non-interactive)
echo "Running coder with --debug flag..."
./target/dev-fast/coder exec --debug "What is 2+2?" 2>&1 | head -20
# Check if debug logs were created
if [ -d "$DEBUG_LOG_DIR" ]; then
echo ""
echo "Debug logs directory created: $DEBUG_LOG_DIR"
echo "Contents:"
ls -la "$DEBUG_LOG_DIR" 2>/dev/null | head -10
# Show a sample log file
echo ""
echo "Sample log file:"
FIRST_LOG=$(ls "$DEBUG_LOG_DIR" 2>/dev/null | head -1)
if [ -n "$FIRST_LOG" ]; then
echo "Contents of $FIRST_LOG:"
head -20 "$DEBUG_LOG_DIR/$FIRST_LOG"
fi
else
echo "Debug logs directory NOT created"
fi