Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cider-dap changes #1768

Merged
merged 5 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added SetExceptionBreakpoints
  • Loading branch information
root authored and root committed Nov 7, 2023
commit 4355a7fc360e17bdeabcb55c641438bdbcacd58a
6 changes: 4 additions & 2 deletions cider-dap/src/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ impl MyAdapter {
out_vec
}

pub fn step(&self) {}
//TODO IMPLEMENT THESE

pub fn cont(&self) {}
// pub fn step(&self) {}

// pub fn cont(&self) {}
}

//Simple struct used to keep an index of the breakpoints used.
Expand Down
18 changes: 15 additions & 3 deletions cider-dap/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod adapter;
mod error;

use adapter::MyAdapter;
use dap::responses::SetBreakpointsResponse;
use dap::responses::{SetBreakpointsResponse, SetExceptionBreakpointsResponse};
use error::MyAdapterError;

use dap::prelude::*;
Expand Down Expand Up @@ -153,9 +153,21 @@ fn run_server<R: Read, W: Write>(
}
}

Command::Continue(args) => {}
//TODO: Implement this request fully when adapter becomes functional
Command::SetExceptionBreakpoints(_) => {
let rsp = req.success(ResponseBody::SetExceptionBreakpoints(
SetExceptionBreakpointsResponse {
breakpoints: (None),
},
));
server.respond(rsp)?;
}

//TODO IMPLEMENT THESE COMMANDS

// Command::Continue(args) => {}

Command::Next(args) => {}
// Command::Next(args) => {}

// Here, can add a match pattern for a disconnect or exit command
// to break out of the loop and close the server.
Expand Down