Sometimes when I quickwatch an expression at runtime, the Quick Watch window shows an error saying the name does not exists in the current context. The same goes for the immediate window. The expression I try to evaluate, however, is perfectly recognized by the class, without throwing any compilation error.
For example, I can have the following line of code:
double x = Math.Pow(2,3);
If I stop the cursor on this line and quickwatch the "Math.Pow(2,3)" part, it gives me an error and I need to place a "System." before my expression; as I said, the same expression runs smoothly in the code window, so I'm not sure which is the "context" the error refers to.
Could it be that these debug windows reference namespaces declared in the class but can't do the same for namespace imported by the project?