Basic Tutorial

This tutorial introduces you to CodeSonar using a sample program that is provided with the product. You will build and analyze a provided sample program, then use the CodeSonar Web GUI to browse and interpret the analysis results.

Sample programs are provided for C/C++, Java, and C# analyses.

Setting Up

  1. Update the setting of your PATH environment variable to include $CSONAR/codesonar/bin if it is not already present (where $CSONAR is the path to your CodeSonar installation directory).
    On Windows systems this is typically c:\Program Files\CodeSecure\CodeSonar\codesonar\bin
  2. Select or create a working directory. The working directory location must be outside both your CodeSonar installation directory and your hub directory.
  3. cd to the working directory.
  4. Go on to the first step: making sure the hub is ready.