Kwcscollect
The kwcscollect command (like Kwcollect for C/C++) is a lightweight tool that you can use to collect C# data and submit to Klocwork Support to receive additional help with build errors. It can be used to collect:
- whole projects (sources and references)
- Visual Studio solution files to investigate problems in the generated build specification
- minimal source files to reproduce parse errors
- sources and references to reproduce semantic or MIR generator errors
Usage
<install_directory>\python\python kwcscollect.py [<options>] <tables_dir>
where
-
<install_directory> specifies the directory where Klocwork is installed
- <options> is any of the kwcscollect options listed below
- <tables_dir> is the tables directory of the project you want to collect data for
Examples
If you want to add an archive to collect data on, run the following:
C:\Klocwork\Server 21.3\python\python kwcscollect.py -o "myarchive" -p "C:\Klocwork\Server 21.4\My_tables"
If you want to collect data for your entire project, you can omit the '-p' option and run the following:
C:\Klocwork\Server 21.3\python\python kwcscollect.py -o "myarchive" "C:\Klocwork\Server 21.4\My_tables"
Options
Name (and short name) | Description |
---|---|
<tables_dir> | The location of your project's tables directory; this is a mandatory option and must be specified last |
--help (-h) | display help |
-o <file> | specify the name of the archive you want to create |
-p | collects parse errors for the project |
--debug | enable debug output |