var_dump equivalent
#61251
Replies: 1 comment 2 replies
-
No, and should never be. Dumping arbitrary fields of objects can lead to severe security risk. When running in debugger, you have full control to the target process, so you can inspect any field you want.
It should be actually JSON serializing. JSON serialization can be easily applied on simple types, but definitely on arbitrary ones. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In PHP there is a function var_dump which dumps a object tree as a string.
I have recently experienced that Blazor (maybe razor) is doing something like that when emitting an object. Is that available in the BCL or just in razor?
Beta Was this translation helpful? Give feedback.
All reactions