Skip to main content
Question

Debugging for Figma plugin

  • March 25, 2024
  • 1 reply
  • 249 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 comments

1 reply

tank666
  • 4868 replies
  • March 25, 2024

The debugger statement should also work in code.js.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings