Debugging
Debugging
Guide to debugging the AI Arena platform.
Backend Debugging
Enable Debug Logging
Set environment variable:
DEBUG=*Check Logs
# Backend logscd backendpnpm run dev
# Check console outputFrontend Debugging
Browser DevTools
- Open browser DevTools (F12)
- Check Console for errors
- Check Network tab for API calls
- Check Application tab for storage
React DevTools
Install React DevTools browser extension for component debugging.
Database Debugging
Check Database File
cat backend/data/arena.jsonReset Database
rm backend/data/arena.jsonpnpm run seedAPI Debugging
Test Endpoints
# Health checkcurl http://localhost:3001/health
# List agentscurl http://localhost:3001/api/agentsWebSocket Testing
Use WebSocket client tools or browser console.
Next Steps
- Common Issues - Common problems