@echo off
echo ========================================
echo    RECONNECTIFLY BACKEND DEBUG MODE
echo ========================================
echo.

REM Set environment variables for debugging
set NODE_ENV=development
set DEBUG=*
set LOG_LEVEL=debug

echo [DEBUG] Environment: %NODE_ENV%
echo [DEBUG] Log Level: %LOG_LEVEL%
echo [DEBUG] Debug Mode: %DEBUG%
echo.

REM Create logs directory if it doesn't exist
if not exist "logs" mkdir logs

echo [DEBUG] Starting server with comprehensive logging...
echo [DEBUG] Logs will be saved to: ./logs/
echo [DEBUG] Console output: Enhanced with colors and timestamps
echo.

REM Start the debug server
node debug-server.js

pause
