Bug 666382 - Evaluating variables shows "unknown identifier" when debugging certain generic methods
Summary: Evaluating variables shows "unknown identifier" when debugging certain generi...
Status: RESOLVED DUPLICATE of bug 668140
Alias: None
Product: MonoDevelop
Classification: Mono
Component: debugger (show other bugs)
Version: SVN
Hardware: x86-64 openSUSE 11.3
: P5 - None : Normal
Target Milestone: ---
Assignee: Lluis Sanchez
QA Contact: MD Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-22 11:57 UTC by IB Board
Modified: 2011-02-01 13:19 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Stack trace at point where evaluation doesn't work (5.15 KB, text/plain)
2011-01-22 11:57 UTC, IB Board
Details

Note You need to log in before you can comment on or make changes to this bug.
Description IB Board 2011-01-22 11:57:57 UTC
Created attachment 409652 [details]
Stack trace at point where evaluation doesn't work

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 SUSE/10.0.633.0 (KHTML, like Gecko) Chrome/10.0.633.0 Safari/534.16

When trying to debug the Diff process within MonoDevelop using the soft debugger then the Diff.CreateDiffs() method then any variable created within the method evaluate as "Unknown identifier".

The values in the Locals window imply that the issue is because of naming and generics, but debugging other generic methods works fine (e.g. the GetDiff method preceding it, which also returns IEnumerable and is generic based on the values passed in). Possibly an issue with nesting generic calls?

Reproducible: Always

Steps to Reproduce:
1. Put breakpoint in the Diff.CreateDiffs() method (around line 217)
2. Run a debug session with the soft debugger that triggers diff creation (e.g. unit tests from https://github.com/IBBoard/monodevelop/tree/Bug664668-HunkCountIssues)
3. Hover mouse over "lineA" or "lineB" or any other value within the method
Actual Results:  
Red text in quick evaluation box showing "Unknown identifier: [name of variable]"

Expected Results:  
Quick evaluation box showing the value of the variable

Used f97a3cc as a base, because of Bug 666380.
Comment 1 IB Board 2011-01-22 14:11:23 UTC
After further investigation, this could be to do with methods returning IEnumerable and having "yield" in them rather than being generics, but I'll leave confirmation to the team.
Comment 2 Lluis Sanchez 2011-02-01 13:19:58 UTC
Dup.

*** This bug has been marked as a duplicate of bug 668140 ***