AI-powered VS Code debugger for explaining errors, previewing fixes, and applying repairs with local or cloud LLM providers.
Supported Providers
ollamalmstudioopenaideepseekclaudegeminiopenroutersiliconflowazure-openai
Features
aiDebugger.explainError: Analyze the current file and explain diagnostics.aiDebugger.explainCode: Right-clickExplain This Codeto 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.baseUrlaiDebugger.modelaiDebugger.apiKeyaiDebugger.temperatureaiDebugger.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: usuallyhttp://localhost:11434lmstudio: usuallyhttp://localhost:1234openai: default base URLhttps://api.openai.comdeepseek: default base URLhttps://api.deepseek.comclaude: default base URLhttps://api.anthropic.comgemini: default base URLhttps://generativelanguage.googleapis.comopenrouter: default base URLhttps://openrouter.ai/apisiliconflow: default base URLhttps://api.siliconflow.comazure-openai: fill in your Azure resource endpoint, plusapiKey, and usuallydeployment
Environment Variable Overrides
AI_DEBUGGER_PROVIDERAI_DEBUGGER_BASE_URLAI_DEBUGGER_MODELAI_DEBUGGER_API_KEYAI_DEBUGGER_PROVIDERAI_DEBUGGER_API_VERSIONAI_DEBUGGER_DEPLOYMENTAI_DEBUGGER_ANTHROPIC_VERSIONAI_DEBUGGER_OPENROUTER_REFERERAI_DEBUGGER_OPENROUTER_TITLEAI_DEBUGGER_TEMPERATUREAI_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.