You're seeing Figma's application logs (touchstart violations, vendor files), NOT your plugin's logs.
-
Browser/App Console (WRONG - what you're seeing now)
- Shows Figma's internal code:
vendor-core,figma_app, etc. - Shows violations and warnings about Figma itself
- This is opened with F12 or browser DevTools
- Shows Figma's internal code:
-
Plugin Console (CORRECT - what you need)
- Shows YOUR plugin's code:
code.ts,ui.html - Shows logs starting with 🚀, 📨, 🎨, etc.
- This is a SEPARATE window opened from Figma's menu
- Shows YOUR plugin's code:
- In Figma Desktop/Web app
- Go to: Plugins → Development → Show/Hide Console
- A NEW DevTools window will open - THIS is the plugin console
- Right-click INSIDE the plugin UI window (the small popup)
- Select "Inspect Element" or "Developer Tools"
- This opens the UI console
🎨 UI HTML Script Tag Executing - This is the plugin UI!
🎨 Window location: data:text/html...
🎨 Parent exists: true
✅ DOMContentLoaded - UI fully loaded
🔘 Convert button clicked!
📊 JSON data length: 1234
✅ JSON parsed successfully
📦 Parsed data type: CANVAS
📦 Has children: true
📤 Sending message to plugin code via parent.postMessage
🚀 Plugin code.ts loaded and running
📡 Setting up message listener...
📨 Message received from UI: convert-json
📦 Full message: {"type":"convert-json"...
✅ convert-json message detected
🔍 JSON Data received: {"type":"CANVAS"...
- ✅ UI logging added: Console logs in ui.html
- ✅ Plugin logging added: Console logs in code.ts
- ✅ Size: 36.8 KB (code.js), 19.9 KB (ui.html)
- Close and reopen the plugin in Figma
- Open BOTH consoles:
- Plugin Console: Plugins → Development → Show/Hide Console
- UI Console: Right-click plugin UI → Inspect
- Paste test JSON (from test-figma-console.js)
- Click Convert
- Check BOTH consoles for the logs above
If you STILL don't see logs, the plugin isn't loading at all - check that you're running the dev version from Plugins → Development → figma-html-push