Как получить полный cmd cc_test (с args и env) для локальной отладки?C++

Программы на C++. Форум разработчиков
Ответить
Anonymous
 Как получить полный cmd cc_test (с args и env) для локальной отладки?

Сообщение Anonymous »


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
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C++»