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