pixelkind / p5canvas

An interactive preview for writing p5js code in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=garrit.p5canvas
Other
39 stars 4 forks source link

swallows JS errors #40

Closed ccoenen closed 3 years ago

ccoenen commented 3 years ago

suppose you have the following (intentionally faulty) script:

rect(100,100,100,100);
gronkh();
rect(300,100,100,100);

p5canvas will draw one of the two, since the second line would be a "undefined is not a function" error or something to that effect.

My problem is, that this error gets discarded silently, so debugging this is harder.

pixelkind commented 3 years ago

Will be fixed in the next release.