driazati opened a new pull request #9872: URL: https://github.com/apache/tvm/pull/9872
This adds colors (which match GDB's output) to files / symbols when printing exceptions from C++ if stdout is a terminal. This also adds an environment variable `TVM_BACKTRACE_LIMIT` which can be used to limit the length of backtraces at runtime. The combo of these two helps make backtraces easier to read at a glance. ```bash export TVM_BACKTRACE_LIMIT=5 python some_code_with_an_error.py ``` Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from [Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers) by @ them in the pull request thread. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
