1 Debugging ArrayFire Issues {#debugging}
2 ===============================================================================
4 Using Environment Variables
5 ---------------------------
7 * [`AF_PRINT_ERRORS=1`](configuring_environment.htm#af_print_errors) : Makes exception's messages more helpful
8 * [`AF_TRACE=all`](configuring_environment.htm#af_trace): Print ArrayFire message stream to console
9 * [`AF_JIT_KERNEL_TRACE=stdout`](configuring_environment.htm#af_jit_kernel_trace): Writes out source code generated by ArrayFire's JIT to the specified target
10 * [`AF_OPENCL_SHOW_BUILD_INFO=1`](configuring_environment.htm#af_opencl_show_build_info): Print OpenCL kernel build log to console
13 Tips in Language Bindings
14 -------------------------
18 * `af_print_mem_info("message", -1);`: Print table of memory used by ArrayFire on the active GPU
22 * `arrayfire.device.print_mem_info("message")`: Print table of memory used by ArrayFire on the active GPU
29 See the [ArrayFire README](https://github.com/arrayfire/arrayfire) for support information.