Hi - I submitted this bug report through the in-editor bug report tool, too, but since this bug completely breaks PlayMaker debugging for me, and I'm really rearing to go on this first PlayMaker project of mine, I post it here, too, in case someone has a brilliant insight that might fix things. Here's the text copied from the report tool:
Frequency: Always
1) What happened
I get the two following error messages in Unity's console while debugging with breakpoints (using Step To Next State Change In Any FSM), once I hit my first breakpoint:
Missing Cached Variables!
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMakerEditor.DebugFlow:Stop()
HutongGames.PlayMakerEditor.FsmEditor:PlaymodeChanged()
UnityEditor.EditorApplication:set_isPaused(Boolean)
HutongGames.PlayMakerEditor.FsmDebugger:Step()
HutongGames.PlayMakerEditor.DebugToolbar:DoPlaybackGUI()
HutongGames.PlayMakerEditor.DebugToolbar:OnGUI()
HutongGames.PlayMakerEditor.FsmGraphView:OnGUI(Rect)
HutongGames.PlayMakerEditor.FsmEditor:OnGUI()
FsmEditorWindow:OnGUI() (at Assets/PlayMaker/Editor/FsmEditorWindow.cs:90)
UnityEditor.DockArea:OnGUI()
...and...
InvalidOperationException: Collection was modified; enumeration operation may not execute.
System.Collections.Generic.List`1+Enumerator[HutongGames.PlayMaker.Fsm].VerifyState ()
System.Collections.Generic.List`1+Enumerator[HutongGames.PlayMaker.Fsm].MoveNext ()
HutongGames.PlayMakerEditor.DebugFlow.Stop ()
HutongGames.PlayMakerEditor.FsmEditor.PlaymodeChanged ()
UnityEditor.EditorApplication.Internal_PlaymodeStateChanged ()
UnityEditor.EditorApplication:set_isPaused(Boolean)
HutongGames.PlayMakerEditor.FsmDebugger:Step()
HutongGames.PlayMakerEditor.DebugToolbar:DoPlaybackGUI()
HutongGames.PlayMakerEditor.DebugToolbar:OnGUI()
HutongGames.PlayMakerEditor.FsmGraphView:OnGUI(Rect)
HutongGames.PlayMakerEditor.FsmEditor:OnGUI()
FsmEditorWindow:OnGUI() (at Assets/PlayMaker/Editor/FsmEditorWindow.cs:90)
UnityEditor.DockArea:OnGUI()
2) How can we reproduce it
I have no idea. I tried setting up a test scene with just a few states and one action on each of them, turned on breakpoints and the same debug step mode, but the errors don't show up in this scene. I also tried grepping the whole Playmaker folder for "Missing cached variables" and just "Missing", but found nothing seemingly relevant. A Google search turned up exactly nothing relevant in the sparse 9 results I got. So I'm hoping you will have an idea of what's wrong from the error messages. One notable fact is that I for some reason started out with using the action "Send Event 2" in the problematic scene/FSMs, before changing this to the "Send Event" action later. Maybe "Send Event 2" is an unfinished previous edition of the action, that shouldn't have been included in the release, and it somehow messed up something?
While I'm on that subject, there seems to be another similar oddity: Misc->Test Action seems a bit nonsensical.
Unity Info:
Unity Version: 3.5.1f2
Playmaker Version: 1.3.2 (24788)
BuildTarget: iPhone
System Info:
OS: Mac OS X 10.7.3
Processor: Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz
System Memory: 2048
Graphics Device: Emulated iPhone 3GS / iPad running OpenGL ES2.0