Comments (8)
I tried DumpStyle.Csharp
. The same.
Here is my code snippet. You can run in LINQPad.
http://share.linqpad.net/xt3u9o.linq
from objectdumper.
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.
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.
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.
The reason is that ObjectDumper.NET doesn't handle the self-containing collections. See closed PR!100
from objectdumper.
@ycherkes Why the PR been closed?
from objectdumper.
@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)
- [Bug] Need a strongly named assembly to use with signed projects HOT 5
- [Bug][4.0.6]ArgumentNullException occurs for records in .Net 7.0 HOT 5
- [Enhancement]Improved way to exclude (readonly) properties
- License Clarification. How to support?
- Can we dump a csharp struct? HOT 3
- Dump ValueTuples does not work properly
- Dumping a thrown exception fails with InvalidOperationException HOT 3
- Dump to CSharp - decimals depands on the culture HOT 3
- Option for swallowing exceptions HOT 4
- Track already dumped objects HOT 3
- C# 9 / dotnet 5.0 records compatible C# dump style HOT 10
- yaml output HOT 4
- Provide an extension method that Dump everything HOT 9
- It doesn't Dump Fields and Private's??? HOT 3
- BadImageFormatException : An attempt was made to load a program with an incorrect format. (0x8007000B)
- [Bug] Cannot Work HOT 2
- [Enhancement] IEnumerable can display optimization HOT 1
- The comparison of null values to String.empty is not explicit
- [Bug] Circular Reference detection issue HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objectdumper.