dap: Add more debug logs for child's stderr (#38418)

Without this, I would never have converged on @cole-miller's patch
https://github.com/zed-industries/zed/pull/38380 when debugging codelldb
not spawning in WSL!

Release Notes:

- N/A
This commit is contained in:
Jakub Konka authored and GitHub committed 2025-09-18 16:35:06 +02:00
1 parent 170e814440
commit 5b17e62dca
2 files changed
+4

No files matched your search

+3
View File
@@ -118,6 +118,7 @@ impl DebugAdapterClient {
R::COMMAND,
sequence_id
);
log::debug!(" request: {request:?}");
self.send_message(Message::Request(request)).await?;
@@ -130,6 +131,8 @@ impl DebugAdapterClient {
command,
sequence_id
);
log::debug!(" response: {response:?}");
match response.success {
true => {
if let Some(json) = response.body {
+1
View File
@@ -262,6 +262,7 @@ impl TransportDelegate {
break;
}
}
log::debug!("stderr: {line}");
for (kind, handler) in log_handlers.lock().iter_mut() {
if matches!(kind, LogKind::Adapter) {