AIDB Troubleshooting Guide
Purpose: General troubleshooting guide for diagnosing AIDB issues across all components
This skill provides investigation workflows, log locations, common failure modes, and diagnostic commands for debugging AIDB.
Related Skills
When troubleshooting specific components:
- •adapter-development - Adapter-specific debugging
- •testing-strategy - Test-specific debugging
- •ci-cd-workflows - CI/CD pipeline debugging
- •mcp-tools-development - MCP server debugging
- •dev-cli-development - CLI command debugging
Quick Start
When encountering AIDB issues:
- •Reproduce - Establish consistent reproduction
- •Check Logs - Start with
~/.aidb/log/aidb.log - •Search Errors -
grep -r "ERROR" ~/.aidb/log/ - •Identify Pattern - Match to common failure mode
- •Apply Fix - Use component-specific guidance
For detailed investigation workflow, see Investigation Workflow.
Resource Files
- •Investigation Workflow - Step-by-step triage playbook
- •Log Locations Reference - Where to find logs for each component
- •Common Failure Modes - Port conflicts, timeouts, permissions, etc.
- •Environment Variables - Debug env vars (AIDB_LOG_LEVEL, etc.)
- •Diagnostic Commands - Command playbooks for investigation
When to Use This Skill
Use this skill when:
- •Debugging AIDB behavior across any component
- •Investigating errors, crashes, or unexpected behavior
- •Performing root cause analysis (RCA)
- •Need to check logs or enable tracing
- •Unsure which component is causing the issue
For component-specific implementation details, route to the appropriate skill:
- •Adapter issues → adapter-development
- •Test failures → testing-strategy
- •CI/CD failures → ci-cd-workflows
Common Scenarios
"AIDB is not working"
- •Check
~/.aidb/log/aidb.logfor errors - •Check adapter installation:
ls ~/.aidb/adapters/ - •See Common Failure Modes
"Session timeout"
- •Check adapter logs in
~/.aidb/log/adapter_traces/{language}/ - •Enable tracing:
export AIDB_ADAPTER_TRACE=1 - •Verify target file exists and is accessible
- •See timeout section in Common Failure Modes
"Port conflict"
- •Check if port in use:
lsof -i :PORT - •Kill process or configure different port
- •See port conflict section in Common Failure Modes
Environment Variables for Debugging
See Environment Variables for complete reference.
Quick reference:
- •
AIDB_LOG_LEVEL=DEBUG- Verbose logging - •
AIDB_LOG_LEVEL=TRACE- Maximum verbosity (includes DAP/LSP protocol payloads) - •
AIDB_ADAPTER_TRACE=1- DAP protocol wire traces (separate files) - •
AIDB_CONSOLE_LOGGING=1- Force console output - •
AIDB_DEBUG=1- General debug mode
Note: TRACE level includes full JSON payloads for DAP/LSP messages and receiver timing metrics.
Log Locations Quick Reference
See Log Locations Reference for complete paths.
System logs: ~/.aidb/log/
- •
aidb.log- Main application - •
mcp.log- MCP server - •
cli.log- CLI operations - •
adapter_traces/{language}/- DAP protocol traces
Test logs:
- •
.cache/container-data/aidb-test-{language}/- Docker tests - •
pytest-logs/{suite}-{timestamp}/- Local tests
Routing to Component Skills
This skill provides general troubleshooting. For component-specific guidance:
Adapter Issues:
- •Adapter not found → adapter-development
- •Breakpoints not working → adapter-development
- •Launch failures → adapter-development
Test Issues:
- •Test failures → testing-strategy
- •Test environment setup → testing-strategy
- •Test debugging → testing-strategy
CI/CD Issues:
- •Workflow failures → ci-cd-workflows
- •Build failures → ci-cd-workflows
- •Matrix configuration → ci-cd-workflows
MCP Issues:
- •Tool errors → mcp-tools-development
- •Response formatting → mcp-tools-development
CLI Issues:
- •Command errors → dev-cli-development
- •Service failures → dev-cli-development