Repository navigation
Debugger: accept URIs in DAP source.path like VS Code
#65408
loading1031
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Translated with an LLM; my original Korean is below.
원문 (Korean)
일부 디버그 어댑터는
source.path를file://URI로 보냅니다. 예를 들어 JetBrains kotlin-lsp(kotlin-server 263.6379.0)의 DAP 서버는 Zed가initialize에서pathFormat: "path"를 요청해도 스택 프레임의source.path를file:///…/StockAllocator.kt형태로 보냅니다. 명세상으로는 서버가pathFormat을 지켜야 하고, 이 부분은 JetBrains에 Kotlin/kotlin-lsp#285로 문의했습니다(시험 결과).다만 VS Code는
source.path가 URI 형태면 URI로 해석합니다(debugSource.ts의getUriFromSource). 그래서 이런 어댑터도 VS Code에서는 문제없이 동작하지만, Zed에서는 프레임을 파일과 연결하지 못해 Variables 패널이 비어 있습니다.많은 디버그 어댑터가 VS Code를 기준으로 개발·테스트되므로, Zed도 VS Code처럼
file://URI를 받아 주면 어댑터마다 우회하지 않아도 됩니다.All reactions