Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NetBeans Break points

807598May 25 2006 — edited May 25 2006
Anyone have the same problem as me:

Programme runs fine.
Need to debug and run to a break point.
Insert the breakpoint.
Run programme and get NullPointerException.
Unable to debug code

Take out breakpoint
Programme runs fine again.

Add breakpoint somewhere else
Code doesn't work. NullPointerException.

Take out breakpoint
Programme runs fine again.

Repeat process ad nauseum until you find a "random" point in your programme where it will work with a break point. Which then means you might have to step through lines and lines of code until you can debug the section you first want to break on.


Dan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2006
Added on May 25 2006
2 comments
129 views