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

fix: fix off by one debugger draw #6886

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Jan 23, 2024

optimistically closes #6878

see #6878 (comment)

this should fix an off by one here:

https://github.com/foundry-rs/foundry/blob/master/crates/debugger/src/tui/draw.rs#L281-L281

but tbh I don't know for sure without a repro, perhaps @ethever can try?

FYI @brockelmore

@mattsse mattsse added the A-debugger Area: debugger label Jan 23, 2024
@ethever
Copy link

ethever commented Jan 23, 2024

optimistically closes #6878

see #6878 (comment)

this should fix an off by one here:

https://github.com/foundry-rs/foundry/blob/master/crates/debugger/src/tui/draw.rs#L281-L281

but tbh I don't know for sure without a repro, perhaps @ethever can try?

FYI @brockelmore

Great job! it works in my case. The right is the fixed version of forge i ran with:

forge run contracts/debug_helper.sol --debug 

And i can keep scrolling down the binary code line by line until the contract revert.

image
Thanks.

@ethever ethever mentioned this pull request Jan 23, 2024
2 tasks
@onbjerg onbjerg merged commit 3344e2c into foundry-rs:master Jan 23, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debugger Area: debugger
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Index out of range
3 participants