How do I inspect the return value of this GetItems() function using the debugger? Do I have to create a local variable for the results to accomplish this?
foreach (string item in GetItems())
{
// some code
}
private List<string> GetItems()
{
// return some list
}
You should be able to just add it as a Watch, and view the values as expected.
Debugging : The Watch Window
How to: Watch an Expression in the Debugger
No, you can add a watch or a quickwatch to GetItems() and you would see the result
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With