For some reason I am unable to get console output in Processing using p5.js mode. Nothing shows up in the Processing window or in the web output screen.
if you open a JavaScript console, and view an HTML file that references your sketch?
Unfortunately, I’m ignorant about all of this. How would I open a JavaScript console? I do have experience with p5.js web editor and OpenProcessing, but I’m accustomed to using the Processing IDE and prefer to use it if I can get some output. However, it’s really hard to debug code if I can’t see console output.
Yeah, it was all about isolating the source of the problem.
in p5.js Mode, when you click the Run button, the job gets handed over to the browser. Then it is up to the browser to read the HTML, and render the page and manage the JavaScript console, according to the linked p5.js library, the linked sketch script, and any CSS that might be linked in or embedded. So, at that stage it becomes unlikely the the problem is with the Processing IDE itself. That sends our focus to the browser or the code for the source of the problem. The code looks good, so that leaves the browser, including its settings.
EDITED on January 17, 2022 to add a couple of sentences to the above.
You could change your default browser, but the one you choose would become the default for opening all HTML files, even outside the Processing Development Environment.
I was trying to avoid that if I could. No good solution it seems. I’ve been having trouble with some p5.js code not running in Safari, while it will run in Chrome. The only other option would be to use a different p5.js editor in lieu of Processing (assuming that I could direct its output to Chrome). I think Dan Shiffman has his set up that way (at least it looks like it in his videos).