- Home /
How to access static members in the watch/immediate window when debugging with MonoDevelop
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?
Your answer
![](https://koobas.hobune.stream/wayback/20220612101145im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how to keep static variables or 2d array value 0 Answers
3D array in Unity script (javascript) + debuging 1 Answer
The requested item has been unloaded 9 Answers
Is it possible to debug Unity games using Monodevelop 3? 2 Answers
Is there a way to make MonoDevelop show hex values in the watch window? 1 Answer