probably my question is due to my “beginnery”; however…
I’m using netbeans and I wrote a project.
Then I start my project with debugger but without break points, hoping that at exception occurrence I could eventually read variable values to understand which instruction is the problem.
An example:
let’s suppose I have a piece of code like this:
to[m][k]=from[i][k];
then at execution it launches a NullPointerException at that line of code…
Ok, then debugger ends and I can’t read variables that caused the exception and moreover in that line of code there are 4 index operations so I can’t understand which one of the 4 really caused the exception.
Thank you
If that line is down inside a bunch of nested loops, I could imagine you wouldn’t want a breakpoint there.
In eclipse, you can set breakpoints on exceptions in addition to on particular lines of code. I’d look for a similar feature in NetBeans.