Skip to content

Build scripts are difficult to run in a debugger #5637

New issue

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

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

Already on GitHub? # to your account

Closed
jdm opened this issue Jun 18, 2018 · 1 comment
Closed

Build scripts are difficult to run in a debugger #5637

jdm opened this issue Jun 18, 2018 · 1 comment
Labels
A-build-scripts Area: build.rs scripts C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@jdm
Copy link

jdm commented Jun 18, 2018

The output of Cargo has a path to the actual binary that is invoked every time a build script is run. That's useful, but there's not output showing all of the environment variables that are set that the build script may expect to be present. This makes it very difficult to launch the build script under a debugger and replicate the conditions of the Cargo build in order to investigate something that isn't working correctly.

@matklad matklad added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Jun 26, 2018
@ehuss ehuss added the A-build-scripts Area: build.rs scripts label Sep 23, 2019
@epage
Copy link
Contributor

epage commented Oct 19, 2023

As of #12829, we now show the env variables as part of -vv so I think this is resolved. If there is something I'm missing, let us know!

@epage epage closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-build-scripts Area: build.rs scripts C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

4 participants