Dynamically setting and retrieving varaibles

Is it possible to dynamically set a variable using another variable that contains the name of the aforementioned variable? Similar to [[var]] which doesn’t work. Where var contains the name of the variable I want to set. I’m trying to learn the Inform 6 and 7 interpreter so I working on a basic multi-purpose debugger for future projects and was wondering if there was a way to add a command that lets you show and set variables mid-game. Like debug set var value and debug get var.

No, there’s no way to do this.

If you want a double-indirection sort of pattern in game code, you usually either use a table, or a property of objects (so the first reference is an object reference). But Inform isn’t really up to writing a debugger in itself.