Skip to main content
March 25, 2024
Question

Debugging for Figma plugin

  • March 25, 2024
  • 1 reply
  • 356 views

Hello! I am building a Figma plugin.
it has a manifest file specifying

“main”: “dist/code.js”,
“ui”: {
“main”: “dist/index.html”,
“editor”: “dist/editor.html”
}

index.html contains some javascript and if I put a debugger; statement there - it gets hit during debugging in Figma desktop app (I have ticked use Developer VM in the options)

However if I put a debugger; statement in code.js - it never gets hit despite the code gets executed.

The only way I found to debug code.js is by using the console.log statements.
Is there an way to debug it using breakpoints or debugger; statements?

Thanks!

This topic has been closed for replies.

1 reply

tank666
March 25, 2024

The debugger statement should also work in code.js.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank