Quantcast
Channel: Questions in topic: "static variables"
Viewing all articles
Browse latest Browse all 84

How to access static members in the watch/immediate window when debugging with MonoDevelop

$
0
0
I have been searching for an answer to this for a while and a great one would be really appreciated. Let's take the following scenario: I am in MonoDevelop on OSX, I placed a breakpoint in a class and I am watching some variables. I am trying to find out details for a **static** member called **levels** defined in a separate class called Requirements. This is outside the context where the breakpoint was placed. This scenario gives an error: > Requirements.levels The name> 'global::MyNamespace.Requirements.levels'> does not exist in the current> context. I tried using the immediate window as well, same result. Tried with *global::* prefix, no luck... Am I missing something or you simply can't use MonoDevelop to watch static members that reside outside the current context?

Viewing all articles
Browse latest Browse all 84

Trending Articles