LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you detect wheather release or debug build.

I want to detect in my code is the code running in the release or debug mode. is there any inbuil function like in labview there is property node called application.kind to get the status of the code.

Message 1 of 7
(4,256 Views)

You could use the macro _CVI_DEBUG_ which is defined as 1 in debug configuration, see the help section on 'Predefined Macros'

Message 2 of 7
(4,251 Views)

This macro will not work if the build configuration is release mode, it can be used only for debug mode.

While building in release mode the CVI will throw an error saying undefined symbol "_CVI_DEBUG_"

0 Kudos
Message 3 of 7
(4,247 Views)
Thanks for your valuable reply..
Actually this is working only in debug configuration but in release configuration it is giving undefined symbol.
can you please help me in detail.
 
 
0 Kudos
Message 4 of 7
(4,246 Views)

So continue reading here Smiley Wink

Message 5 of 7
(4,240 Views)

Thanks

0 Kudos
Message 6 of 7
(4,235 Views)

There additionally is the function BeingDebuggedByCVI ()



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 7 of 7
(4,230 Views)