Open
Description
Most appropriate sub-area of Processing 4?
PDE
Processing version
4.4.4
Operating system
Ubuntu 24.04, Windows 10
Bug description
The location of an exception (e.g. NullPointerException) is not highlighted, nor is a stack trace printed. The only information printed is a red NullPointerException message at the bottom. There is no obvious way how to find out where this was thrown.
This seems to be a regression to earlier 3.x versions, where the line of the thrower would be at least highlighted.
Steps to reproduce this
"1. open the below snippet in PDE
-
run the snippet
-
observe that the error message (NullPointerException) is not linked to any position in the code, nor is any position in the code highlighted, nor is a stack-trace or similar printed anywhere"
snippet
PVector [] vs = new PVector[10];
for (int i=0;i<vs.length;++i)
vs[i].set(0,0); // <-- this position should be contained in the error message
Additional context
real showstopper when trying to debug any bigger program in PDE!
Would you like to work on the issue?
No, I’m just reporting the issue