Coder Social home page Coder Social logo

exagent's Introduction

exagent

a javaagent to embellish exception stack traces with useful information

Run your application like

java -javaagent:/path/to/exagent.jar -jar your.jar

exagent will dynamically instrument your code to change the information contained in exception stack traces. Specifically, it will add the values of all method params of all methods called on the stack at the time the method was invoked for that exception stack trace. This allows you to have more information to track down what went wrong.

There are several options that you can specify when attaching the agent:

* exclusion_pattern
* inclusion_pattern
* parm_size_limit

The first two are regular expressions that specify what classes/packages will be instrumented. Only classes that are not eliminated by the exclusion_pattern but are added by the inclusion_pattern are instrumented. Of course either (or both) can be not specified.

The parm_size_limit limits the size of the output of any particular parameter to n characters, in the case that the toString() call of one of your parameters is large. It also can be not specified.

To specify these attributes add them to the -javaagent specification at the end following an equals sign, like this:

java -javaagent:/path/to/exagent.jar=exclusion_pattern=/org/;inclusion_pattern=/org/mydomain/;parm_size_limit=100 -jar your.jar

This is a work in progress, and likely to have problems at the moment. Patches, bug reports welcome!

exagent's People

Contributors

isharasamantha avatar mebigfatguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ishara

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.