Git Product home page Git Product logo

Comments (8)

doggy8088 avatar doggy8088 commented on June 3, 2024 1

I tried DumpStyle.Csharp. The same.

Here is my code snippet. You can run in LINQPad.

http://share.linqpad.net/xt3u9o.linq

image

from objectdumper.

thomasgalliker avatar thomasgalliker commented on June 3, 2024 1

I have no idea why I closed the PR @ycherkes
Don‘t take it personally. As soon as I have sone time I gonna look into it.

Thanks for reporting this @doggy8088

from objectdumper.

thomasgalliker avatar thomasgalliker commented on June 3, 2024

That‘s not good. Do you have a sample object which you can share, so I can try to reproduce the problem?
Can you check if the same problem also occurs if you use DumpStyle.Csharp?

from objectdumper.

BranchScope avatar BranchScope commented on June 3, 2024

Same stuff when I try to dump a Regex.Match GroupCollection.

var match = Regex.Match(logs, RePattern, RegexOptions.IgnoreCase);
Console.WriteLine(match.Groups.Dump());

It might not be the right approach but, as a learner, I was just debugging my code and:

Stack overflow.
   at System.RuntimeType.ValidateGenericArguments(System.Reflection.MemberInfo, System.RuntimeType[], System.Exception)
   at System.Reflection.RuntimeMethodInfo.MakeGenericMethod(System.Type[])
   at ObjectDumping.Internal.TypeExtensions.GetDefault(System.Type)
   at ObjectDumping.Internal.TypeExtensions.TryGetDefault(System.Type)
   at ObjectDumping.Internal.PropertyAndValue..ctor(System.Object, System.Reflection.PropertyInfo)
   at ObjectDumping.Internal.ObjectDumperConsole+<>c__DisplayClass2_0.<CreateObject>b__3(System.Reflection.PropertyInfo)
   at System.Linq.Enumerable+SelectListIterator`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Fill(System.ReadOnlySpan`1<System.__Canon>, System.Span`1<System.__Canon>, System.Func`2<System.__Canon,System.__Canon>)
   at System.Linq.Enumerable+SelectListIterator`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ToList()
   at ObjectDumping.Internal.ObjectDumperConsole.CreateObject(System.Object, Int32)
   at ObjectDumping.Internal.ObjectDumperConsole.FormatValue(System.Object, Int32)
   at ObjectDumping.Internal.ObjectDumperConsole.WriteItems(System.Collections.IEnumerable)
   at ObjectDumping.Internal.ObjectDumperConsole.FormatValue(System.Object, Int32)
   at ObjectDumping.Internal.ObjectDumperConsole.CreateObject(System.Object, Int32)
   at ObjectDumping.Internal.ObjectDumperConsole.FormatValue(System.Object, Int32)
   at ObjectDumping.Internal.ObjectDumperConsole.WriteItems(System.Collections.IEnumerable)
   at ObjectDumping.Internal.ObjectDumperConsole.FormatValue(System.Object, Int32)
   at ObjectDumping.Internal.ObjectDumperConsole.CreateObject(System.Object, Int32)
   ...[REDACTED] (tons of lines here)...
   at ObjectDumping.Internal.ObjectDumperConsole.WriteItems(System.Collections.IEnumerable)
   at ObjectDumping.Internal.ObjectDumperConsole.FormatValue(System.Object, Int32)
   at ObjectDumping.Internal.ObjectDumperConsole.Dump(System.Object, DumpOptions)
   at ObjectDumper.Dump(System.Object, DumpOptions)
   at ObjectDumper.Dump(System.Object)
   at ObjectDumperExtensions.Dump(System.Object)

from objectdumper.

ycherkes avatar ycherkes commented on June 3, 2024

The reason is that ObjectDumper.NET doesn't handle the self-containing collections. See closed PR!100

from objectdumper.

doggy8088 avatar doggy8088 commented on June 3, 2024

@ycherkes Why the PR been closed?

from objectdumper.

ycherkes avatar ycherkes commented on June 3, 2024

@doggy8088 this question is for @thomasgalliker.
I can just say that it is one of couple reasons why I developed my own library with no such issues.

from objectdumper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.