I'm working on that `stdin` RFE that I requested. ...
# development
f
I'm working on that
stdin
RFE that I requested. This is my first time crossing into the Rust domain. Somehow I introduced a hang. I've added a bunch of
debug!
calls, but I can't figure out how to enable them when running under
pants test
. I did add
RUST_LOG=debug
into the
extra_env_vars
of the
[test]
section in
pants.toml
but that didn't do it. And just setting it on the command line doesn't work either. Any suggestions on where I should set it?
f
You should set
RUST_LOG
when invoking Pants, e.g.
RUST_LOG=debug ./pants -ldebug --log-show-rust-3rdparty ...
You'll need those other options as well.
If you are using the Pants integration testing helper, you'd need to pass such options to the Pants invocation that your test makes.
With
RuleRunner
, you may need to pass parameters via
.set_options
.
f
Thanks! This got me the output I needed to find my infinite loop.