TN.
TN.

Reputation: 19880

How to increase limit of graph in LINQPad?

Results shown in LINQPad are limited. If objects are deep nested, a red line is shown. I would like to increase a limit, so I can see more nested objects.

Do you know how to do it? (I have not find that in options.)

Background not in the original question: LINQPad will display of "limit of graph" error message if the total output exceeds a certain threshold (total page size). The suggested answers are addressing how to limit the depth of the individually dumped object graphs, which may help avoiding hitting the total size limit. It does not, however, increase the "limit of graph", which is what OP is asking.

Upvotes: 18

Views: 2838

Answers (2)

Chris Pfohl
Chris Pfohl

Reputation: 19074

To flesh out @lioil's answer:

Dump's overloads include:

T Dump<T>(this T o); //Dump the object and return it (for fluency)
T Dump<T>(this T o, string description); //Dump with label
T Dump<T>(this T o, int maximumDepth); //Dump with given maximum depth
T Dump<T>(this T o, string description, int maximumDepth); //Combine the above

You're looking for the third or fourth option.

Upvotes: 7

lioil
lioil

Reputation: 405

Try another overload of Dump() method.

Upvotes: 6

Related Questions