AI-powered VS Code debugger for explaining errors, previewing fixes, and applying repairs with local or cloud LLM providers.
Supported Providers
ollama
lmstudio
openai
deepseek
claude
gemini
openrouter
siliconflow
azure-openai
Features
aiDebugger.explainError: Analyze the current file and explain diagnostics.
aiDebugger.explainCode: Right-click Explain This Code to explain a function, class, call flow, or generate Chinese comments.
aiDebugger.previewFix: Generate a full-file fix and open a diff preview.
aiDebugger.applyFix: Apply the AI-generated repair directly to the file.
aiDebugger.setConfige: Open the extension settings page.
Default Behavior
Default provider: ollama
Default local model: qwen2.5-coder:7b
Existing Ollama users do not need to change anything.
Common Settings
aiDebugger.baseUrl
aiDebugger.model
aiDebugger.apiKey
aiDebugger.temperature
aiDebugger.maxTokens
The settings page now keeps only these five items. The provider is inferred from aiDebugger.baseUrl by default, and advanced overrides can still be supplied through environment variables or manual settings.json entries when needed.
Provider Notes
ollama: usually http://localhost:11434
lmstudio: usually http://localhost:1234
openai: default base URL https://api.openai.com
deepseek: default base URL https://api.deepseek.com
claude: default base URL https://api.anthropic.com
gemini: default base URL https://generativelanguage.googleapis.com
openrouter: default base URL https://openrouter.ai/api
siliconflow: default base URL https://api.siliconflow.com
azure-openai: fill in your Azure resource endpoint, plus apiKey, and usually deployment
Environment Variable Overrides
AI_DEBUGGER_PROVIDER
AI_DEBUGGER_BASE_URL
AI_DEBUGGER_MODEL
AI_DEBUGGER_API_KEY
AI_DEBUGGER_PROVIDER
AI_DEBUGGER_API_VERSION
AI_DEBUGGER_DEPLOYMENT
AI_DEBUGGER_ANTHROPIC_VERSION
AI_DEBUGGER_OPENROUTER_REFERER
AI_DEBUGGER_OPENROUTER_TITLE
AI_DEBUGGER_TEMPERATURE
AI_DEBUGGER_MAX_TOKENS
Provider-native API key environment variables are also supported where applicable, such as OPENAI_API_KEY, DEEPSEEK_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, OPENROUTER_API_KEY, SILICONFLOW_API_KEY, and AZURE_OPENAI_API_KEY.