Debugging for Figma plugin

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!

The debugger statement should also work in code.js.