Как получить полный cmd cc_test (с args и env) для локальной отладки? ⇐ C++
-
Anonymous
Как получить полный cmd cc_test (с args и env) для локальной отладки?
I have a complex cc_test which has tons of args and envs specified in the rules:
cc_test( name="my_test", args=[...tons of args...], env= {...tons of envs...}, ) Now I want to run it locally by running ./bazel-bin/my_test, so that I can use GDB to debug it.
The problem is I neeed to copy&paste args and env form the rules manually, to get the full command like:
ENV1=X ENV2=Y ./bazel-bin/my_test --args1=x --args2=y
Which is very a waste of time.
Is there a faster way to get this command? Or is there any other simpler way to debug a cc_test with GDB?
Источник: https://stackoverflow.com/questions/781 ... ug-locally
I have a complex cc_test which has tons of args and envs specified in the rules:
cc_test( name="my_test", args=[...tons of args...], env= {...tons of envs...}, ) Now I want to run it locally by running ./bazel-bin/my_test, so that I can use GDB to debug it.
The problem is I neeed to copy&paste args and env form the rules manually, to get the full command like:
ENV1=X ENV2=Y ./bazel-bin/my_test --args1=x --args2=y
Which is very a waste of time.
Is there a faster way to get this command? Or is there any other simpler way to debug a cc_test with GDB?
Источник: https://stackoverflow.com/questions/781 ... ug-locally
Мобильная версия