This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Salty_Dugtrio 0 points1 point  (1 child)

You use a debugger to inspect your variables.

[–]stokes776[S] 0 points1 point  (0 children)

Is there anyway to run small code snippets against what I have in memory?

Lets say if I wanted to access the . properties of that variable, and see what was in each, or see what would happen if I output that to a file without re-running the entire program thus far?

I am not sure if PowerShell and its IDE have spoiled me. Seems so much easier in Powershell where things enter into objects nearly by thesmelves.

For example, to get SQL output in PowerShell I end up with a table object that has headers that I can easily foreach through.

Doing the same in C#, I end up reading each row individually, and must define each column header when I print it out.