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 195369 - Breakpoint placement may become invalid
Summary: Breakpoint placement may become invalid
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0
Hardware: Macintosh (x86) Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-11 22:56 UTC by michal.owsiak
Modified: 2011-03-15 09:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen_1 (170.87 KB, image/png)
2011-02-11 22:56 UTC, michal.owsiak
Details
screen_2 (249.96 KB, image/png)
2011-02-11 22:58 UTC, michal.owsiak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michal.owsiak 2011-02-11 22:56:44 UTC
Created attachment 105922 [details]
screen_1

Open Debugger Sanity Test

Open MemoryView.java

Set breakpoint at line #136

Press Enter few times.

You should end up with situation like at screen_1

Enter new lines and remove them until breakpoint gets broken (hard to reproduce) - screen 2
Comment 1 michal.owsiak 2011-02-11 22:58:43 UTC
Created attachment 105923 [details]
screen_2
Comment 2 Jiri Kovalsky 2011-02-11 23:52:09 UTC
Yes, the same thing (screen_1) can be achieved by pasting some multi-line text on a line with breakpoint.
Comment 3 Martin Entlicher 2011-03-07 16:02:08 UTC
Ideally, the breakpoint is moved with the rest of the line when there are only whitespace characters between the beginning of the line and the inserted enter.
When enter is inserted to the very beginning of the line, it moves correctly.
Comment 4 Martin Entlicher 2011-03-14 16:03:53 UTC
Fixed by changeset:   190987:caa112cf7ad5
http://hg.netbeans.org/main/rev/caa112cf7ad5
Comment 5 Quality Engineering 2011-03-15 09:44:37 UTC
Integrated into 'main-golden', will be available in build *201103150400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/caa112cf7ad5
User: mentlicher@netbeans.org
Log: #195369 Move breakpoint down when inserting whitespace text with newlines.