https://github.com/boolivar/tostring
Java toString() instrumentation
https://github.com/boolivar/tostring
Last synced: 6 months ago
JSON representation
Java toString() instrumentation
- Host: GitHub
- URL: https://github.com/boolivar/tostring
- Owner: boolivar
- License: mit
- Created: 2025-04-09T20:26:52.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-06T19:34:12.000Z (about 1 year ago)
- Last Synced: 2025-06-06T20:27:36.051Z (about 1 year ago)
- Language: Java
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ToString Agent
## Overview
The `ToString Agent` is a Java instrumentation agent designed to enhance `toString()` method representation in Java applications.
It dynamically instruments Java classes during runtime to provide informative string representations for objects.
## Getting Started
### Prerequisites
- Java 8 or higher.
- Java application to instrument.
### How to Use
Using the `ToString Agent` is straightforward. You simply need to add the `-javaagent` option when starting your Java application.
#### Steps:
1. Build or download the `ToString Agent` JAR file.
2. Run your Java application with the `-javaagent` option pointing to the JAR file.
```bash
java -javaagent:path/to/tostring-agent.jar -jar your-application.jar
```
Replace path/to/tostring-agent.jar with the actual path to the agent JAR file.
That's it! The agent will automatically instrument your classes at runtime.