So I've been trying to work with PaperJS for a short while now and what I notice is that the error messages only refer back to lines in the library code where it eventually goes wrong. It never tells me though where in my own code the problem originated. This makes debugging nearly impossible sometimes and currently I'm stuck. Is there any way to set it such that I can actually trace where it goes wrong in my code? An example error is provided below. Also on a separate note, if someone could explain how addChild
can trigger the error item._remove is not a function
, that'd be greatly appreciated.
TypeError: item._remove is not a function[Learn More] paper-full.js:4018:6
insertChildren http://localhost:3000/scripts/paper-full.js:4018
insertChild http://localhost:3000/scripts/paper-full.js:3999
addChild http://localhost:3000/scripts/paper-full.js:3995
onMouseUp http://localhost:3000/scripts/paper-full.js line 16889 > Function:282
emit http://localhost:3000/scripts/paper-full.js:675
emit http://localhost:3000/scripts/paper-full.js:13613
_handleMouseEvent http://localhost:3000/scripts/paper-full.js:13623
_handleMouseEvent http://localhost:3000/scripts/paper-full.js:13067
mouseup http://localhost:3000/scripts/paper-full.js:12892