Giter Site home page Giter Site logo

cargo-debug's People

Contributors

ryankurte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cargo-debug's Issues

Debugging the build script

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

Be more compatable with run?

It would be nice (for me at least) if debug tried to be a drop-in replacement for run, so I can easily switch between the two.

For example, with run I would normally do:

cargo run --bin myprog -- args

but cargo debug doesn't accept "--bin".

Fails to start in subdirectory

Would it be possible to enhance cargo-debug to run from a subdirectory and not only where Cargo.toml lives? Currently, I'm getting

% cargo debug build
args: ["/home/joerg/.cargo/bin/cargo-debug", "debug", "build"]
thread 'main' panicked at 'Failed to read Cargo.toml: CargoTomlError { inner: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }) }', /home/joerg/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-debug-0.3.0/src/main.rs:95:51
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

cargo-debug 0.3.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.