That's great that you found the solution. You may also find this useful. _CVI_DEBUG_ is defined to be 1 if the Build==> Configuration is set to debug mode. It can be used in #ifdef statements to exchange or exclude code based on the configuration setting being Release or Debug.