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

Debugging the build script #4

Open
jo-so opened this issue Jul 8, 2022 · 1 comment
Open

Debugging the build script #4

jo-so opened this issue Jul 8, 2022 · 1 comment

Comments

@jo-so
Copy link

jo-so commented Jul 8, 2022

Currently, my cargo build fails due to the build-script crashes. I would like to start the debugger to investigate where the build-script crashes, but cargo-debug doesn't start:

% cargo debug build
args: ["/home/joerg/.cargo/bin/cargo-debug", "debug", "build"]
   Compiling website v0.0.0 (/home/joerg/Projekte/daheme/website)
error: could not compile `website` due to 9 previous errors
thread 'main' panicked at 'no viable output artifacts found', /home/joerg/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-debug-0.3.0/src/main.rs:166:28
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I have to manually run gdb ../target/debug/build/website-e333b96705e42304/build-script-build

cargo-debug 0.3.0

@ryankurte
Copy link
Collaborator

ryankurte commented Jul 9, 2022

oooh, if we can pull the build script asset name somehow (it looks like it should be exposed via cargo_metadata in the same way we grab binary names) this would be an excellent feature~!

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

No branches or pull requests

2 participants