{"record":{"id":"90e963424b028651","repo":"zed-industries/zed","slug":"failed-to-find-a-debug-adapter","errorCode":null,"errorMessage":"Failed to find a debug adapter","messagePattern":"Failed to find a debug adapter","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/debugger/dap_store.rs","lineNumber":254,"sourceCode":"            breakpoint_store,\n            worktree_store,\n            sessions: Default::default(),\n            adapter_options: Default::default(),\n        }\n    }\n\n    pub fn get_debug_adapter_binary(\n        &mut self,\n        definition: DebugTaskDefinition,\n        session_id: SessionId,\n        worktree: &Entity<Worktree>,\n        console: UnboundedSender<String>,\n        cx: &mut Context<Self>,\n    ) -> Task<Result<DebugAdapterBinary>> {\n        match &self.mode {\n            DapStoreMode::Local(_) => {\n                let Some(adapter) = DapRegistry::global(cx).adapter(&definition.adapter) else {\n                    return Task::ready(Err(anyhow!(\"Failed to find a debug adapter\")));\n                };\n\n                let settings_location = SettingsLocation {\n                    worktree_id: worktree.read(cx).id(),\n                    path: RelPath::empty(),\n                };\n                let dap_settings = ProjectSettings::get(Some(settings_location), cx)\n                    .dap\n                    .get(&adapter.name());\n                let user_installed_path = dap_settings.and_then(|s| match &s.binary {\n                    DapBinary::Default => None,\n                    DapBinary::Custom(binary) => {\n                        let path = PathBuf::from(binary);\n                        Some(worktree.read(cx).resolve_relative_path(path))\n                    }\n                });\n                let user_args = dap_settings.and_then(|s| s.args.clone());\n                let user_env = dap_settings.and_then(|s| s.env.clone());","sourceCodeStart":236,"sourceCodeEnd":272,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/project/src/debugger/dap_store.rs#L236-L272","documentation":"get_debug_adapter_binary could not resolve any debug adapter for the adapter name in the debug task definition — the DapRegistry has no matching adapter entry. boot_session therefore cannot launch a debug session for this configuration.","triggerScenarios":"Thrown at crates/project/src/debugger/dap_store.rs:254 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the adapter name in the debug scenario for typos","Install or register the required debug adapter extension/package","Verify the adapter is available in the current environment (some are platform-specific)"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}