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 229491 - Can't set breakpoint in any section of file
Summary: Can't set breakpoint in any section of file
Status: RESOLVED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-08 02:40 UTC by jtbarnes3rd
Modified: 2013-05-09 11:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jtbarnes3rd 2013-05-08 02:40:40 UTC
Trying to debug NASA world wind project a variation ov ViewIteration and I can't set a breakpoint anywhere to debug my changes.  I set the breakpoint and it shows valid but when I run debug I get:

Listening on javadebug
User program running
Not able to submit breakpoint LineBreakpoint ViewIteration.java : 195, reason: Line number information is missing in the class file gov.nasa.worldwindx.examples.ViewIteration$AppFrame$FollowPath.
Invalid LineBreakpoint ViewIteration.java : 195
Not able to submit breakpoint LineBreakpoint ViewIteration.java : 152, reason: Line number information is missing in the class file gov.nasa.worldwindx.examples.ViewIteration$AppFrame$Heading.
Invalid LineBreakpoint ViewIteration.java : 152
User program finished


and the breakpoints become broken.


The attachment can be the standard ViewIteration file from the NASA world wind SDK.

The programs run OK but it is difficult to make changes.

Thanks for any help you can provide.
Comment 1 Martin Entlicher 2013-05-09 11:37:36 UTC
This not a bug. Since there is no line number information in the class files, it's not possible to set breakpoint on any line.
The solution is to compile sources with -g (generate debugging info).