Skip to main content
Matheus_Souza
June 22, 2023

Variable debugger/inspector

  • June 22, 2023
  • 14 replies
  • 2172 views

Currently, in order to check if a variable value is set correctly, you need to apply it to a text or field. It would be great to have a way to debug/inspect a variable in runtime, especially for those that are not displayed on screen.

14 replies

Vivek_G
July 30, 2024

Thanks. Any frame in Figma has a mode set explicitly or inherited from the parent or the page. Hence the inspector pane variable text elements should inherit the mode of the frame they belong to.

Could you elaborate more on how you are trying to inspect a mode, so that I can understand where the gap is?

Colin4
New Participant
July 31, 2024

Im using modes to assign variables to individual items. So let’s say i have variable A, that variable has 2 modes Brooklyn, and Manhattan. My interactions target the specific mode, so i don’t just need to know the state of A, i need to know the state of A > Manhattan.

Vivek_G
August 1, 2024

Okay. When you set mode through an interaction, the mode applies to the entire page (see this official article).

Like I said earlier, the inspector pane is just a child frame, appended by the plugin to all top level frames. It will inherit the mode of the top level frame, which in turn inherits the mode of the page (unless overriden manually for that frame).

If your interaction is properly setting the mode for the page, then the inspector pane should show the value of the variable, down to that mode (I’ve tested this on my end by running the plugin, it works). If not, you might need to debug your interactions/mode settings.

To debug, I would suggest manually changing the mode for the entire page, when you are in design tab. If this is changing modes properly, then it narrows down to fixing your prototype interactions/checking for overridden modes for specific frames.

If you need more help, you may send an email to the support email of the plugin.

Frank_K
Active Member
November 11, 2025

why is this feature still not active?