Thanks!
I'm trying to run a cc_test with "bazel test --run_under='gdb --args' :my_test", and it always reports success, without starting up gdb. Is there some magic to get this to work? I've tried --run_under='gdb' alone as well, and same result.
Thanks!
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/f8dc6874-2d4f-4002-bfd8-d9ecbfd35e76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/0dfebd9c-2ff3-4a27-93db-afecc2253934%40googlegroups.com.
Resurrecting this thread to share a trick I found, --run_under="gdbserver :2345", eg:
bazel test -c gdb --cache_test_results=no --run_under='gdbserver :2345' :my_test
# in another terminal:
gdb -ex "target remote :2345"
It looks like gdb is not happy under bazel run either. gdb exits instantly again, this time it prints the startup info at least though. ie. "bazel run --run_under='gdb --args' :my_test" gives