How to edit future source code,and_then apply changes for debugging

im reading source code of futures-0.1.29 for learning,i modified some source codes,the debugger didt see it.how to apply the changes?

cargo build should detect edits automatically if the code you edited is part of the project you're building.

If you're editing some custom checkout of the crate, make sure it's added to your project as a path dependency.

https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#testing-a-bugfix

1 Like