Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase limit of graph in LINQPad?

Tags:

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.

like image 479
TN. Avatar asked May 31 '10 15:05

TN.


1 Answers

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.

like image 76
Chris Pfohl Avatar answered Sep 21 '22 08:09

Chris Pfohl