Crash with Yanfly's Debug Extension

I've been working on adding Luna Engine to my game, and ran into an error when I try to open the debug menu with Yanfly's debug script installed.

S7iMokN.png


Line 987 says @cursor_sprite.visible = self.visible

I tried positioning the debug script below, then above Luna, and the crash still happens. I also tried using Yanfly's script in the Etrian, Ys, and Factory demos to check if the error didn't come from a different script in my game, but the demos crash with the same error message too.

At this point I'm not sure if I messed up somewhere or if there's a bug in Luna, so I just wanted to ask just in case 🙂
I get the same error, as well.
Debug extension is going to be a bit more tricky to implement because of the map teleporting, I have made an alternate version over here?


http://pastebin.com/kD2aaxrw


If you guys are fine without map teleporting, that's compatible with Luna engine.
I personally don't really use the map teleports all that much, so that's fine. Thanks!
I mainly just want it for items, switches and stuff like that.  Teleporting is easy enough to do with a common event.

Original thread: https://forums.rpgmakerweb.com/threads/crash-with-yanflys-debug-extension.33818/