06-02-2017 12:21 AM
is there something called VI analyzer for performing the unit testing and tracing bug the throughout the modules within Cvi environment ?
Solved! Go to Solution.
06-02-2017 05:47 AM - last edited on 04-17-2024 08:50 AM by Content Cleaner
There isn't an exact equivalent of the VI analyzer in CVI environment, nevertheless this IDE offers several tool that can help in designing and debugging good code.
First of all, the last versions of CVI that integrate clang compiler offer a customizable list of building warnigs that can check for 150+ common code errors. See Options >> Build Options >> Compiler warnings dialog and the related help page
When in debug configuration, if you enable extended debugging level you can benefit from the Resource Tracking Window, which enumerates all allocated resources and dynamic memory blocks, thus helping you in detecting memory leaks and lost resources.
NOTE: this option is available only in the Full Development System
Finally, CVI offers the Execution Profiler Toolkit, that helps in time-profiling your application to optimize them for execution time.
Additionally, being CVI a standard C-language tool, you can benefit from third party tools that analyze your code and gives metrics and statistics on the code complexity, percentage of comments, code depths and so on. One of the simplest, yet powerful tools is SourceMonitor, which additionally is freeware software, but you can get plenty of them out there.