5.1 Enabling DMAI trace
The DMAI modules have trace built in which can be enabled on Linux using the DMAI_DEBUG environment variable. Setting it to '1' prints errors and warnings, while setting it to '2' prints errors, warnings and debug messages. If you have a target application myapp which uses DMAI you can set this environment variable for just one invocation of the command by executing the following on the target in the bash shell:
> DMAI_DEBUG=2 ./myappThis will send the DMAI trace output to stdout.
- DMAI_DEBUG=0 disables DMAI trace, even if it is set by Dmai_setLogLevel in the application itself.
- DMAI_DEBUG=1: errors and warnings
- DMAI_DEBUG=2: all messages
本文介绍了如何使用DMAI_DEBUG环境变量启用DMAI模块的跟踪功能。通过设置不同的值可以控制输出错误、警告及调试信息的详细程度。适用于在目标应用myapp中精细调整DMAI的调试级别。

被折叠的 条评论
为什么被折叠?



