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 217863 - Debugger stops at next expression when breakpoint on no executable location
Summary: Debugger stops at next expression when breakpoint on no executable location
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-05 08:41 UTC by Jiri Skrivanek
Modified: 2013-01-09 08:52 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 Jiri Skrivanek 2012-09-05 08:41:43 UTC
Debugger should stop at the beginning of command when breakpoint is submitted in no executable location of that command. To reproduce:

- create HTML 5 project
- copy the following to body of index.html

            var a1 = [
                    1,
                    2,
                    3,
                    4
                    ];
            document.writeln("a1=" + a1);

- toggle breakpoints at lines with 2 and 3
- run file in Chrome
- debugger stops at document.writeln

Product Version: NetBeans IDE Dev (Build web-main-8418-on-20120905)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Martin Entlicher 2013-01-07 21:41:09 UTC
Unfortunately, Chrome is moving breakpoints down, instead of up. Therefore the breakpoint is moved to the next expression. This is a behavior of Chrome.

I've fixed the visual move of the breakpoint annotation to the correct line:
changeset:   243686:032645cac5c2
http://hg.netbeans.org/web-main/rev/032645cac5c2
Comment 2 Quality Engineering 2013-01-09 02:26:39 UTC
Integrated into 'main-golden', will be available in build *201301090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/032645cac5c2
User: mentlicher@netbeans.org
Log: #217863: Update the line breakpoint imediately after submit, according to the response.