Record exclusion/inclusion
This page describes how to include/exclude packages, classes, method from the records.

Whitelist Mode

  • Maven / Gradle project configuration:
    • In pom/gradle.build file set parameter in compiler args:
Maven
Gradle
1
pom.xml
2
3
<configuration>
4
<compilerArgs>
5
...
6
<arg>-AREVDEBUG_ANNOTATED_ONLY=true</arg>
7
...
8
</compilerArgs>
9
...
Copied!
1
build.gradle
2
3
compileJava {
4
options.compilerArgs = [
5
...
6
"-AREVDEBUG_ANNOTATED_ONLY=true",
7
...
8
]}
Copied!
  • Enable recording selected classes or methods by annotation
1
public class Main {
2
3
@RevDeBugConfig.Annotation.Include
4
public static void main(String[] args) {
5
6
System.out.println("Hello world");
7
}
Copied!

Control Record operations

  • Disable recording operations:
    • Value changes
    • Return statements
    • Errors
Maven
Gradle
1
pom.xml
2
3
<configuration>
4
<compilerArgs>
5
...
6
<arg>-AREVDEBUG_TRACE_VALUE_CHANGE=false</arg>
7
<arg>-AREVDEBUG_TRACE_RETURNING=false</arg>
8
<arg>-AREVDEBUG_TRACE_ON_ERROR=false</arg>
9
...
10
</compilerArgs>
11
...
Copied!
1
build.gradle
2
3
compileJava {
4
options.compilerArgs = [
5
...
6
"-AREVDEBUG_TRACE_VALUE_CHANGE=false",
7
"-AREVDEBUG_TRACE_RETURNING=false",
8
"-AREVDEBUG_TRACE_ON_ERROR=false",
9
...
10
]}
Copied!

Black List

Via code

  • Disable recording selected classes or methods by annotation
1
public class Main {
2
3
@RevDeBugConfig.Annotation.Exclude
4
public static void main(String[] args) {
5
6
System.out.println("Hello world");
7
}
Copied!

Via compiler arguments

  • Disable recording:
    • Methods by names
    • Packages or classes
    • The method with fewer or equal lines than
Maven
Gradle
1
pom.xml
2
3
<configuration>
4
<compilerArgs>
5
...
6
<arg>-AREVDEBUG_EXCLUDE_METHODS=[method1, m2, ...]</arg>
7
<arg>-AREVDEBUG_EXCLUDE=[package.classname, package]</arg>
8
<arg>-AREVDEBUG_SHORT_METHOD_LIMIT=[Integer]</arg>
9
...
10
</compilerArgs>
11
...
12
Copied!
1
2
build.gradle
3
4
compileJava {
5
options.compilerArgs = [
6
...
7
"-AREVDEBUG_EXCLUDE_METHODS=[method1, m2, ...]",
8
"-AREVDEBUG_EXCLUDE=[package.classname, package]",
9
"-AREVDEBUG_SHORT_METHOD_LIMIT=[Integer]",
10
...
11
]}
Copied!

Via file

  • Include rdbIgnore into the project
    • Input value name wanted to be ignored during recording
file structres
content example
Last modified 4mo ago