-
Notifications
You must be signed in to change notification settings - Fork 0
Make handle_request method of debugger
#29
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
base: move-debugger-from-lib
Are you sure you want to change the base?
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
piotmag769
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good here to introduce the trait I mentioned before - if it's too much rebasing can be in another PR
| ServerResponse::Error("Set function breakpoints is not yet supported".into()) | ||
| } | ||
| impl CairoDebugger { | ||
| pub(crate) fn handle_request(&self, request: Request) -> Result<HandleResult> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| pub(crate) fn handle_request(&self, request: Request) -> Result<HandleResult> { | |
| pub fn handle_request(&self, request: Request) -> Result<HandleResult> { |
This module is not visible from lib.rs anyways
| pub enum HandleResult { | ||
| Handled, | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering if we could somehow return sth from handle_request that is an info for the server about what it should do next (send request/event/halt and wait for continue etc.), like it was before. This way we give the control back to the server event loop, which results in clearer code. And we don't need server state in this function anymore
a5ef870 to
fa0a56f
Compare
aa4b2b6 to
0a954c9
Compare
No description provided.