Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4267026
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:50:30+00:00 2026-05-21T06:50:30+00:00

This is something I’ve often wanted to be able to do while debugging. If

  • 0

This is something I’ve often wanted to be able to do while debugging. If I have a line of code which computes a collection inside the header of a foreach loop:

foreach ( var item in someObject.GetItems( someParameter ) ) {
    ...
}

There doesn’t seem to be anything I can hover over to get the computed set of items returned by GetItems, even though it was clearly computed and returned in order for the loop to be able to execute.

Just seems like something that would be obviously handy. Am I missing something? It’s a pain to have to rewrite the code to store the list in a variable just so I can see it while debugging, especially if I discover a bug that isn’t easily reproducible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T06:50:30+00:00Added an answer on May 21, 2026 at 6:50 am

    One way is to just add the following expression to the watch window

    someObject.GetItems(someParameter);
    

    Hovering won’t work for this scenario but explicitly adding it to the watch window will. There is a lot of care taking in the code which evaluates expressions during hovering to not evaluate functions. The logic being that functions are expensive, can deadlock the IDE and we don’t want a hover operation to cause a deadlock. The GetItems portion of this expression is a function evaluation and hence the EE refuses to evaluate it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have something like this: something need here = scope.getConnections(); //getConnections() returns Collection<Set<IConnection>> I
When you have code like this: Something something = new Something(); BlahEntities b =
This is something I've pseudo-solved many times and have never quite found a solution
This is something that I have never fully grasped in .NET as to the
This is something that I have always wondered about, but never bothered to profile.
This is something that comes up so often I almost stopped thinking about it
I often see something similar to this below in PHP scripts using MySQL query(SET
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
When I used a new variable something.something or this.something, my code worked when I
I have a simple database table with 170MB overhead. Is this something I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.