This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
- I modified project properties to have “Generate debugging info” checked, from Project properties -> Build -> Compiling, and checked (Generate debugging info) - Back to my source code - I added a new line breakpoint, - Netbeans didn’t complain!!!! In My point of view , Netbeans should reject to add any new breakpoint, also it should disable all the exits breakpoints
This may seem like a good idea at first sight, but the fact that the option is checked or not is not related to debugging ability of netbeans. If you disable the "Generate debugging info" and build the project, debugger won't be able to submit line breakpoints, ok. But what if you wanted to attach debugger to a running application (compiled with debugging info)? You would have to change the project settings just to be able to work with line breakpoints if netbeans behaved the way you described. Netbeans cannot predict what and how are you going to debug. The current behavior when debugger prints an error message that it's unable to submit line breakpoints because of missing line number information seems like the best solution for me.
sorry, unchecking “Generate debugging info” should disallow user to add an