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

MVP debugger #123

Merged
merged 13 commits into from
Dec 17, 2024
Merged

MVP debugger #123

merged 13 commits into from
Dec 17, 2024

Conversation

k88hudson-cfa
Copy link
Collaborator

@k88hudson-cfa k88hudson-cfa commented Dec 13, 2024

This PR adds a basic cli debugger

Copy link
Collaborator

@ekr-cfa ekr-cfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems mostly right, but I think could use one more spin.

src/debugger.rs Outdated Show resolved Hide resolved
src/debugger.rs Outdated Show resolved Hide resolved
src/debugger.rs Outdated Show resolved Hide resolved
src/debugger.rs Outdated Show resolved Hide resolved
src/debugger.rs Outdated Show resolved Hide resolved
src/debugger.rs Show resolved Hide resolved
src/debugger.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@ekr-cfa ekr-cfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty much right but the tests don't pass.

examples/runner/main.rs Outdated Show resolved Hide resolved
src/debugger.rs Outdated Show resolved Hide resolved
src/debugger.rs Outdated Show resolved Hide resolved
src/debugger.rs Outdated Show resolved Hide resolved
src/plan.rs Outdated Show resolved Hide resolved

#[derive(Clone)]
struct StdoutMock {
storage: Rc<RefCell<Vec<u8>>>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this have to be an Rc?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this to get around having to pass in a reference that can be stored in the cli struct and modify the vec, but also be able to check it later for tests once you release the cli's reference

src/debugger.rs Show resolved Hide resolved
Copy link
Collaborator

@ekr-cfa ekr-cfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ekr-cfa ekr-cfa merged commit 71284df into main Dec 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants