Is there a way to convert variable name to plaintext?

Help!

Basically, I want to do something like this:

 function debugVariable(myVariable) { 
      draw_text(0,0, "myVariable: " + string(myVariable));
 }

Problem is with drawing the variable name dynamically. Is there a way to do it, like variable_get_name or something along the lines?

Posted Jun 29, 2024, 12:36 PM UTC

12

Comments aren't archived yet

This post had 2 comments on Reddit. Comments for this period haven't been loaded into the archive yet.