-
Notifications
You must be signed in to change notification settings - Fork 116
Debugging Sketch Plugin
Konrad Dzwinel edited this page Apr 23, 2018
·
2 revisions
- Open Sketch
- Create new Sketch document
- Inside of the
html-sketchapp
folder runnpm run watch-plugin
- Whenever you change the plugin code it will rebuild and run asking you to select
.asketch.json
files
- Load your test
.asketch.json
files - Analyze the console output and put additional
console.log
s in code to debug
- Go back to 4
Note that line numbers in error messages refer to the transpiled version of the asketch2sketch.js
file, that can be found in the /build
folder