Hello, I’m attempting to debug a p5.js sketch and, for this particular sketch it would be helpful to use the web inspector (via Chrome or Safari, for example) to track a variable’s value. Can anyone provide some pointers for how to do this with the p5 web editor? Looking at the sources view, it’s really hard to find out where to look for the sketch.js file. I’m assuming that there’s some magic going on behind the scenes to take what I type in sketch.js and make it runnable in the browser, so I’m not even sure where to look in this hierarchy (screenshot below from Chrome):
My goal is to be able to set breakpoints via the web inspector and step through the code there. Any suggestions would be most welcome!