LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

If in debug mode do this, else ...

Solved!
Go to solution

Hi, is it possible to check whether I am running the program in debug mode, and if so, a function run, but if in release mode, to run a different function? That is, can I query whether it is in debug or release mode?

Thanks in advance!

Message 1 of 4
(3,295 Views)
Solution
Accepted by TurboMetrologist

You can use the macro _CVI_DEBUG_

0 Kudos
Message 2 of 4
(3,293 Views)

... or use BeingDebuggedByCVI () function call.



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 3 of 4
(3,282 Views)

Thanks to both of you!

0 Kudos
Message 4 of 4
(3,258 Views)