Skip to content

Set up the Debugging Environment for Qilin in IntelliJ IDEA

Dongjie He edited this page Mar 24, 2022 · 1 revision

Contents

  • Pre-requisites
  • Load as Gradle project
  • Open Qilin's main class file
  • Modify Run Configuration
  • Debugging

Step 1: Pre-requisites

# git clone https://github.com/QilinPTA/Qilin.git

Step 2: Load as a Gradle project

  • File --> Open or Projects --> Open

loadQilin

  • If you encounter any problem, you may wish to refer to this link.

Step 3: Open Qilin's main class file

qilinMain

Step 4: Modify the run configuration

IMG_20220321_102346

Let us assume that you want to debug xalan (from DaCapo2018) under a specific context-insensitive pointer analysis. So you will provide the following arguments in the configuration dialog:

-pae
-pe
-clinit=ONFLY
-lcs
-mh
-pta=insens
-apppath
/home/hedj/Work/QiLinOfficial/artifact/benchmarks/dacapo2018/xalan.jar
-libpath
/home/hedj/Work/QiLinOfficial/artifact/benchmarks/dacapo2018/xalan-deps/
-reflectionlog
/home/hedj/Work/QiLinOfficial/artifact/benchmarks/dacapo2018/xalan-refl.log
-jre=/home/hedj/Work/QiLinOfficial/artifact/benchmarks/JREs/jre1.8.0_312/

The configuration dialog looks like this:

configDialog

Step 5: Debugging

Now, everything is done. Let us debug the benchmark by checking the program state at line 49.

  • Make a breakpoint on line 49.
  • Click the Debug button on the right-top toolbar (or press Shift+F9)

debugState