You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
Right now it's a pain to test out a module, you'd have pepper console.logs around the module, open toolPage.html, select a sequence, select your tool and run it, every time you're debugging.
Sequence on the other hand are much easier to try out quickly. Say I wanted to see if my naturals sequence is working correctly, I can very quickly append these lines to sequenceNaturals.js:
naturals=GEN_Naturals({'includezero': false})// GEN_Naturals() returns out functionconsole.log(naturals(0))//1console.log(naturals(1))//2console.log(naturals(2))//3
And then run file with node:
$ node sequenceNaturals.js
Which returns
1
2
3
Unfortunately the drawing modules naturally need browser for testing, what we can do is have a sort of sandbox.html that loads somemodule.js and a configurable sandbox.js which automatically selects a sequence for testing and runs the canvas as soon as the HTML is open. That way you can have the console open for any console.log statements, and you can just refresh the browser and see the changes you made without having to go through the panels.
The text was updated successfully, but these errors were encountered:
Right now it's a pain to test out a module, you'd have pepper console.logs around the module, open toolPage.html, select a sequence, select your tool and run it, every time you're debugging.
Sequence on the other hand are much easier to try out quickly. Say I wanted to see if my naturals sequence is working correctly, I can very quickly append these lines to sequenceNaturals.js:
And then run file with node:
Which returns
Unfortunately the drawing modules naturally need browser for testing, what we can do is have a sort of sandbox.html that loads somemodule.js and a configurable sandbox.js which automatically selects a sequence for testing and runs the canvas as soon as the HTML is open. That way you can have the console open for any console.log statements, and you can just refresh the browser and see the changes you made without having to go through the panels.
The text was updated successfully, but these errors were encountered: