Questions tagged [object-dumper]

7 questions
56
votes
12 answers

object dumper class

I'm looking for a class that can output an object and all its leaf values in a format similar to this: User - Name: Gordon - Age : 60 - WorkAddress - Street: 10 Downing Street - Town: London - Country: UK - HomeAddresses[0] …
Chris S
  • 64,770
  • 52
  • 221
  • 239
55
votes
10 answers

Is there a Python equivalent to Perl's Data::Dumper for inspecting data structures?

Is there a Python module that can be used in the same way as Perl's Data::Dumper module? Edit: Sorry, I should have been clearer. I was mainly after a module for inspecting data rather than persisting. BTW Thanks for the answers. This is one awesome…
Rob Wells
  • 36,220
  • 13
  • 81
  • 146
15
votes
2 answers

Is there a library that provides a formatted Dump( ) function like LinqPad?

I work with a lot of Linq queries in my code, and I'm looking for a library that provides a formatted Dump() function similar to what LinqPad offers. LinqPad's Dump() extension method is really quite nice, because it handles nested collections very…
Garrett Serack
  • 943
  • 7
  • 17
2
votes
1 answer

Dump Object for ComObject using dynamic?

I'm trying (without luck) to implement an "Object Dumper" for objects I'm accessing in the Office Type Library. It must be possibly, because VS's debug window has a "dynamic view" for the System.__ComObject objects that effectively does what I…
Chris Webb
  • 752
  • 7
  • 22
2
votes
2 answers

Write values of all public objects (string/int/enum) within a container object to Console

I have an object called Job and inside of it I have strings, ints, and an enum as public objects. Each job is then placed into a Queue and I iterate through the queue in the process. What I want to do is that when I Dequeue() each job, I can…
cvocvo
  • 1,586
  • 2
  • 23
  • 38
1
vote
1 answer

How to pretty print the Iterator Method

I want to get the method name with its arguments of Iterator Method and I am struggling to find a simple solution. Iterators are generated by a compiler as a result the source method name and it's arguments are now in a generated class name and it's…
mipi
  • 273
  • 4
  • 14
0
votes
1 answer

Symfony VarDumper Doctrine Sub Objects

When i use VarDumper of Symfony (symfony/var-dumper) to dump an Doctrine object and do have collection of subobject but the dumper dont display those sub-objects ? Is it normal ? I use : echo '
';
   …
psylo66
  • 608
  • 11
  • 26