I was debugging some code in Visual Studio 2005 when I noticed that the IDE did not hit breakpoints in a specific generic class. I could manually go into the class, but the tooltips shown when hovering over links contained nothing but memory addresses, instead of the usual friendly hints.
It turns out the problem is caused by the file name (!). In particular, when the file name contains the character `(backtick, backquote), the debugger will not load characters for this file. The workaround is to rename the file.
First of all, I used a backlink to represent a general type of power:
- Foo.cs contains a non-generic type (e.g. Foo)
- Foo`1.cs contains a generic type with a parameter of the same type (for example, Foo <T>)
- Foo`2.cs contains a common parameter with two type parameters (for example, Foo <T, U>)
This error (is it?) Also occurs in Visual Studio 2008.
Can anyone explain this behavior?
source share