Monodevelop - unknown identifier

Today i fired up Monodevelop and set a breakpoint in a C# coroutine and i found that none of the variables were accessible.

Everything comes up as ‘unknown identifier’

variables in my Update() function work just fine.

Does anyone read this forum then? Seems a bit quiet. I’ll try some key words…

unity3d

debug

IDE

productivity

modern

Hey angvzp0x,

I just started using monodevelop today and have gotten the same error as yourself. After much fiddling and experimentation I discovered that it only happens to me in IEnumerator functions, i.e. when I’m using yield stuff in C#. What is the context of your errors, i.e. are you trying to read vars that are in “normal” functions (that are either void, float, int, Vector3 etc) and are you programming in C#?

I’ve had the same issue, basically I can’t inspect variables at all in my current project. Filed a bug on it, and from what I’ve heard from people on IRC, it seems to be a pretty common bug with the debugger. Hopefully they will be able to fix it in the next point release.

A current work around for this is type watch the variable named this.

It will give you access to all of that class’s variables.