Add pretty print output for objects via Dumpify#213
Draft
Conversation
Co-authored-by: AlexHedley <1573469+AlexHedley@users.noreply.github.com>
Copilot stopped work on behalf of
AlexHedley due to an error
March 18, 2026 22:47
Collaborator
|
@copilot retry |
Author
The implementation is complete. Here's a summary of what was done: Changes made (commit
All 23 tests pass (2 pre-existing failures in |
Copilot
AI
changed the title
[WIP] Add pretty print output for objects
Add pretty print output for objects via Dumpify
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integrates Dumpify to enable
.Dump()pretty-printing of any object in the interactive C# playground, similar to LINQPad's.Dump()function.Changes Made
net7.0tonet8.0andglobal.jsonupdated to SDK8.0.418(required since .NET 7 SDK is unavailable in the build environment).Microsoft.Web.LibraryManager.Buildremoved as Monaco editor is provided by theBlazorMonacoNuGet package.AssemblyInvoker— Dumpify writes toConsole.Outby default, which is already captured via the existingStringWriterredirect during invocation.BlazorReferenceFilter:Dumpify.dllis now included in the available framework assembly references.EditorComponent:Dumpify.dlladded to theRequiredassemblies list so it is always pre-selected and enabled for user code.samples.jsondemonstrating.Dump()usage on an anonymous object with nested array.AssemblyInvokerTest.cs: 4 new tests verifying Console output capture, Dumpify output capture, empty output handling, andConsole.Outrestoration after invocation.Testing
NuGetPackageGetterTestper issue NuGet Packages #19 —NotImplementedException)Dumpify.wasmandSpectre.Console.wasmare present in the WASM_framework/outputDumpify.dllas a metadata reference (noSpectre.Console.dllneeded for user-facing compilation)Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.