How to debug Processing.js code?
in
Processing with Other Languages
•
1 year ago
Apparantly some regular Processing code works, some does not. According to the Processing.js reference most functions are supported. But if there is no flawless transition, I have no way of telling what is the problem! For the sketches that DO NOT run in Processing.js...
* EDIT * I found the issue that I was having, which inspired this topic. Apparantly Processing.js can't handle function overloading (with the default functions). However it would have been nice if I've gotten some kind of error message somewhere instead of being forced to go through a lengthy trial-and-error sequence.
- When running it in the browser you just get a white/black canvas, but no error console or something.
- When using 2.0a's Javascript mode, the applet gets exported without error messages, but doesn't run.
- When pasting it in the P5.js web IDE, no errors are displayed, but the sketch window just remains white.
* EDIT * I found the issue that I was having, which inspired this topic. Apparantly Processing.js can't handle function overloading (with the default functions). However it would have been nice if I've gotten some kind of error message somewhere instead of being forced to go through a lengthy trial-and-error sequence.
1