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:
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user