07-11-2016 03:07 AM
Hi All
After Creating a VI if i run the VI Analyzer it will througha warning error for Enabling allow debugging in VI Properties Categories
I am working on a Project where more than thousand VI's are used. whats the imapact it will create based on peforrmance, if i uncheck enable debugging in all VI's
07-11-2016
04:16 AM
- last edited on
05-05-2025
04:57 PM
by
Content Cleaner
Palanivel,
"Enable Debugging" suppresses specific optimization steps during compilation.
You can learn about compiler optimizations here. One example of disabled optimization for "debuggable" VIs would be structure folding.
Please note that depending on your code complexity, the compiler also disables specific optimizations. You can check the VI complexity in the VI properties as well (Memory Usage). You can modify the complexity when the compiler starts to disable specific optimizations in the LV options (Environment >> Compiler).
Norbert
07-11-2016 07:22 AM
So you meant to say this option helps during compilation and not during code execution
Reason for my question is we have a team of 10 Members and the Project includes sub VI's in the Range of thousands, if it helps me in execution time or process improvemnet i can suggest to use them with Disabling Debugging
07-11-2016 07:51 AM
@PalanivelThiruvenkadam wrote:So you meant to say this option helps during compilation and not during code execution
Reason for my question is we have a team of 10 Members and the Project includes sub VI's in the Range of thousands, if it helps me in execution time or process improvemnet i can suggest to use them with Disabling Debugging
Disabling debugging allows the compiler to perform more optimizations that will (theoretically) decrease your execution time. It could actually increase your compile time (not likely enough for you to notice).
07-11-2016 07:57 AM
07-11-2016 08:04 AM
So we can conclude like its a warning which creates not much difference during a execution time.No matter whether its enabled or disabled my code executes at the more or less same rate .
07-11-2016 08:17 AM
07-11-2016 08:51 AM
Actually, debugging is something you want to have during code development. VI Analyzer is a tool you are using when finalizing code for release. Hence the rule to warn you about "Enable Debugging".
However, if you are building an EXE or PPL, the default script disables debugging for all VIs during the build process (the ones being put into the file, NOT the original ones!). So if you are building an EXE, you can likely ignore this warning.
But to be fair: There have been rare incidences where disabling debugging had enough influence a such that race conditions in the code became effective. That is also one reason for VI Analyzer to check this setting.
Norbert