Re: Data::Dumper for java




I'm unfamiliar with Perl and it's libraries, so I have to ask -- what
would you do with such a thing?

Avoid having to write toString() functions for all of your modules,
sprinkle your code with printlns without needing to worry about
implementation, get good defaults for printing out structures like
List<String>..


For debugging, my debugger shows me all I need, with out any work
whatsoever on my part.  I haven't looked into logging utilities but the
default ones do take an object as a parameter.  This might just invoke
toString() however.  Then there's Serialization and XMLEncoder/Decoder,
which might be consdiered "stadardized" forms also.

yes, if you can get that ability inside of jdb, let me know. And I
don't have access to x11 on the place where I need to run the code, so
if you know how to run code on a server, serialize input and output
via an ssh shell, and get the output into an intellij/eclipse IDE, I'd
love to know that too. Use an IDE is great as long as you have access
to an IDE.

Ed
.



Relevant Pages

  • Re: ToString Debug vs Display strategies & preferences
    ... IFormattable implementation as well as ToString() override. ... public string FirstName ... public string ToString(string fmt, IFormatProvider fp) ... How about generalized debugging ToString stratagies? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Using ToString to pad an integer with leading zeroes
    ... ToStringto work when debugging. ... No overload for method 'ToString' takes '1' arguments ... What are you calling ToString() on? ... If you're writing code in the debugger's immediate window, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Data::Dumper for java
    ... one that is tunable (ie: that can override objects' ... toString() methods, shows only so many levels of output, etc. ... Java so helpfully provides a somewhat meaningless toStringfunction ... For debugging, my debugger shows me all I need, with out any work whatsoever on my part. ...
    (comp.lang.java.programmer)
  • Re: Using ToString to pad an integer with leading zeroes
    ... ToStringto work when debugging. ... What are you calling ToString() on? ... If you're writing code in the debugger's immediate window, ... non integral type. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Setting the default member of a class
    ... Fabio a scris: ... I found out I need to modify 2 files in order to make the IDE to ... The IDE display the result of the ToString() method. ...
    (microsoft.public.dotnet.languages.csharp)