1.. _debugging_environment_variables: 2 3Debugging Environment Variables 4=============================== 5.. list-table:: 6 :header-rows: 1 7 8 * - Variable 9 - Description 10 * - ``TORCH_SHOW_CPP_STACKTRACES`` 11 - If set to ``1``, makes PyTorch print out a stack trace when it detects a C++ error. 12 * - ``TORCH_CPP_LOG_LEVEL`` 13 - Set the log level of c10 logging facility (supports both GLOG and c10 loggers). Valid values are ``INFO``, ``WARNING``, ``ERROR``, and ``FATAL`` or their numerical equivalents ``0``, ``1``, ``2``, and ``3``. 14 * - ``TORCH_LOGS`` 15 - For a more in depth explanation of this environment variable, see :doc:`/logging`.