Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More meaningful -DprintArgs #64

Open
floyd-fuh opened this issue Oct 1, 2019 · 1 comment
Open

More meaningful -DprintArgs #64

floyd-fuh opened this issue Oct 1, 2019 · 1 comment

Comments

@floyd-fuh
Copy link
Contributor

Could we get a more meaningful -DprintArgs?

For byte array inputs it is printing things like:

.id_000004[0]: [B@695c938d

But a hex output of the byte array would be very nice instead... I now had to do a workaround where I System.out.println() arguments in a more meaningful way.

I know the documentation says it calls toString(), but a couple of nicer approaches for simple data types would be very nice

@rohanpadhye
Copy link
Owner

Sure. We could create a class say InputUtils in the util package, whose one method say repr() creates a string representation of whatever it gets, falling back to toString() for unknown data types.

Feel free to open a PR if you have a starting point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants