Skip to content
charles edited this page Apr 16, 2020 · 17 revisions

1.Prepare for the env.

Before setting up SVF in CLion IDE, make sure you have followed the Setup Guide in SVF and initial steps have been finished to use the SVF tools.

2. Install CLion and import SVF in CLion

Download the software from official websites . During the installation, you don't have to setup all following ENV and Cmake execution file path .etc

press open the SVF folder which has been build in your PC. Just open with the SVF_HOME.

3. Setup for the Toolchain and Cmake ENV

Choose preference(win settings) to set Toolchains c++ compiler with LLVM_9.0.0 same as the Setup-guide in SVF. You need to choose the executable file.(LLVM/bin/clang++ or clang-9)

Then setup cmake part.


1. Set to debug mode.
2. Set cmake option the file path is the LLVM_9.0.0 path:
'-DLLVM_DIR=clang+llvm-9.0.0-x86_64-darwin-apple'
3. Generation path is you have build SVF executable file path
4. Build option should be set as  '-j 4'

After four steps, press "Apply" and "OK". IDE will automatically build the whole project again

4.Finish and test

click 'configuration' and select what executable file you want debug. enter the program arguments and working directory path. Then press build and debug. You will see all variable and functions in your dash board.