Diagnostic Mode 6.4.0

Synopsys Detect's diagnostic mode automatically enabled debug logging (where possible), saves all output (logs and inspector files) to a zip file, and notifies you of the location of the zip.

About the diagnostic mode

Synopsys Detect's diagnostic mode automatically enabled debug logging (where possible), saves all output (logs and inspector files) to a zip file, and notifies you of the location of the zip.

Diagnostic mode properties are as follows:

-d

When enabled, diagnostic mode collects all files generated by Synopsys Detect and zips the files using a unique run ID.
It includes logs, BDIO files, extraction files, and reports.

-de

--diagnosticExtended

When diagnosticExtended is enabled, Synopsys Detect collects relevant files such as lock files and build artifacts. The zip file is created inside the Synopsys Detect output directory and must be provided when support issues are opened.

Synopsys does not recommend keeping this option on, because it does not clean up the zip file(s); regardless of the Synopsys Detect cleanup flag.

Diagnostic mode

  • Sets the output log level to DEBUG.

  • Zips the entire run directory of Synopsys Detect which includes:

  • All BDIO files created by Synopsys Detect.

  • Any intermediary files generated by Synopsys Detect, such as Gradle inspector output files.

  • Includes any additional reports Synopsys Detect might make such as dependency counts.

  • Additionally -de or -diagnosticExtended includes additional relevant files such as:

  • Npm package locks.

  • vendor.config.

  • C/C++ compilation database.

The option -de enables the collection of relevant files that are not generated by Synopsys Detect; for example, lock files. By default, diagnostic mode only includes files generated by Synopsys Detect where -de might include files it finds. For example, a package.lock that is too deep for Synopsys Detect's search depth is not included, or a package.lock that was not parsed due to exclusion.

After running a scan with diagnostic mode, results similar to the following display in your output.

2019-03-29 09:32:02 INFO  [main] --- Creating diagnostics zip. 2019-03-29 09:32:02 INFO  [main] --- Diagnostics zip location: C:\detect\blackduck\runs\detect-run-2019-03-29-13-31-50-492.zip 2019-03-29 09:32:03 INFO  [main] --- Diagnostics file created at: C:detect\blackduck\runs\detect-run-2019-03-29-13-31-50-492.zip 2019-03-29 09:32:03 INFO  [main] --- Diagnostic mode has completed.

 

©2018 Synopsys, Inc. All Rights Reserved