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.

Bug 174440 - uncheck “Generate debugging info” should disallow adding new breakpoints
Summary: uncheck “Generate debugging info” should disallow adding new breakpoints
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-13 13:01 UTC by lakani
Modified: 2009-10-13 15:35 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lakani 2009-10-13 13:01:14 UTC
-	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
Comment 1 Vojtech Sigler 2009-10-13 13:20:26 UTC
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.
Comment 2 lakani 2009-10-13 15:35:23 UTC
sorry, unchecking “Generate debugging info” should disallow user to add an