You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lambda-string (LS) is a helping java agent that inject configurable toString method into lambdas with some useful meta-information.
4
4
5
5
LS comes with a default toString strategy that print the origin of the lambdas. This feature let you easily track their origin while debugging as shown below :
6
6
7
-

7
+

8
8
9
9
## Usage
10
10
11
-
The most recent release is [LS 0.1](https://gitlab.com/TurpIF/lambda-to-string/tags/v0.1).
11
+
The most recent release is [LS 0.2](https://gitlab.com/TurpIF/lambda-string/tags/v0.2).
12
12
13
13
To activate the LS agent in general, please use the following:
14
-
- Download the [lambdaString-0.1.jar](https://gitlab.com/TurpIF/lambda-to-string/-/jobs/artifacts/v0.1/raw/target/lambdaString-0.1.jar?job=package%3Ajdk8)
15
-
- Add `-javaagent:/path/to/lambdaString-0.1.jar` in your java options
14
+
- Download the [lambda-string-0.2.jar](https://gitlab.com/TurpIF/lambda-string/-/jobs/artifacts/v0.2/raw/target/lambda-string-0.2.jar?job=package-jdk8)
15
+
- Add `-javaagent:/path/to/lambda-string-0.2.jar` in your java options
16
16
17
17
18
18
To activate the LS agent using remote debugger, please use the following:
# Attach a debugger client with JDB or your preferred IDE
28
28
```
29
29
30
30
31
31
To activate the LS agent using IntelliJ, please use the following:
32
-
- Download the [lambdaString-0.1.jar](https://gitlab.com/TurpIF/lambda-to-string/-/jobs/artifacts/v0.1/raw/target/lambdaString-0.1.jar?job=package%3Ajdk8)
33
-
- Add `-javaagent:/path/to/lambdaString-0.1.jar` in the "VM options" of your debugging configuration
32
+
- Download the [lambda-string-0.2.jar](https://gitlab.com/TurpIF/lambda-string/-/jobs/artifacts/v0.2/raw/target/lambda-string-0.2.jar?job=package-jdk8)
33
+
- Add `-javaagent:/path/to/lambda-string-0.2.jar` in the "VM options" of your debugging configuration
To activate the LS agent with custom toString strategy, please use the following:
39
-
- Download the [lambdaString-0.1.jar](https://gitlab.com/TurpIF/lambda-to-string/-/jobs/artifacts/v0.1/raw/target/lambdaString-0.1.jar?job=package%3Ajdk8)
40
-
- Add `-javaagent:/path/to/lambdaString-0.1.jar=my.custom.ToStringStrategy` in your java options
39
+
- Download the [lambda-string-0.2.jar](https://gitlab.com/TurpIF/lambda-string/-/jobs/artifacts/v0.2/raw/target/lambda-string-0.2.jar?job=package-jdk8)
40
+
- Add `-javaagent:/path/to/lambda-string-0.2.jar=my.custom.ToStringStrategy` in your java options
41
41
42
42
43
43
## Why
@@ -89,10 +89,10 @@ This agent should be used during a debugging session with human interaction,
89
89
so a little performance overhead is still acceptable as long as it is not perceptible by a human.
90
90
Although, here is some benchmarks to give you some ideas of the potential impacts :
Copy file name to clipboardExpand all lines: pom.xml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
<name>lambda-string</name>
11
11
<description>Lambda-string (LS) is a helping java agent that inject configurable toString method into lambdas with some useful meta-information</description>
0 commit comments