@@ -26,7 +26,7 @@ pub struct Request {
27#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
27#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
28pub struct Response {
28pub struct Response {
29− pub seq: u64,
29+ // seq is omitted as unused and is not sent by some implementations
30 #[serde(rename = "type")]
30 #[serde(rename = "type")]
31 pub msg_type: String,
31 pub msg_type: String,
32 pub request_seq: u64,
32 pub request_seq: u64,
@@ -38,7 +38,7 @@ pub struct Response {
39#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
39#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
40pub struct Event {
40pub struct Event {
41− pub seq: u64,
41+ // seq is omitted as unused and is not sent by some implementations
42 #[serde(rename = "type")]
42 #[serde(rename = "type")]
43 pub msg_type: String,
43 pub msg_type: String,
44 pub event: String,
44 pub event: String,
@@ -165,10 +165,7 @@ impl Transport {
165 fn process_response(res: Response) -> Result<Response> {
165 fn process_response(res: Response) -> Result<Response> {
166 match res.success {
166 match res.success {
167 true => {
167 true => {
169− "<- DAP success ({}, in response to {})",
168+ info!("<- DAP success in response to {}", res.request_seq);
170− res.seq, res.request_seq
@@ -218,10 +215,8 @@ impl Transport {
218 client_tx.send(msg).expect("Failed to send");
215 client_tx.send(msg).expect("Failed to send");
221− Payload::Event(Event {
218+ Payload::Event(Event { ref event, .. }) => {
222− ref event, ref seq, ..
224− info!("<- DAP event {} #{}", event, seq);
219+ info!("<- DAP event {}", event);
225 client_tx.send(msg).expect("Failed to send");
220 client_tx.send(msg).expect("Failed to send");