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 238777 - Adding/removing line breakpoints requires JS Test Driver to be restarted although IDE indicates opposite
Summary: Adding/removing line breakpoints requires JS Test Driver to be restarted alth...
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: PC Linux
: P2 normal with 1 vote (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-25 14:21 UTC by Vladimir Riha
Modified: 2014-02-17 14:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (5.72 MB, application/zip)
2013-11-25 14:21 UTC, Vladimir Riha
Details
webkit log from moment when line bp was not hit (23.32 KB, application/zip)
2013-11-25 14:25 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-11-25 14:21:27 UTC
Created attachment 142547 [details]
sample project

Please have a look at the attached project and try following:
  - invoke Test action on project, select js-test-driver and run tests in Chrome with NetBeans integration
  - tests finish OK (some fail, some passed...)
  - open Unit Tests/unit/jasmine.js
  - toggle line breakpoint in line 12
  - again invoke Test action on project

=> breakpoint is ignored and code execution does not stop there

  - switch to Services window
  - right click on JS Test Driver and stop it
  - again invoke Test action on project
  - breakpoint from prev. step is hit, continue F5     [STEPX]
  - add line breakpoint to line 17
  - invoke Test action on project

=> this breakpoint is again ignored. The same happens if you at [STEPX] add line breakpoint to line 19 before Continue F5, after continue it will be ignored.
  
  - toggle off  line breakpoint at line 12
  - invoke Test action on project

=> already removed breakpoint is hit


As a result, one has to restart JS Test Driver every time he wants to manipulate with breakpoints


Product Version: NetBeans IDE Dev (Build 201311250002)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-11-25 14:25:35 UTC
Created attachment 142548 [details]
webkit log from moment when line bp was not hit

This is a webkit log from moment when line breakpoint was ignored.
Comment 2 Vladimir Riha 2013-11-28 09:46:51 UTC
I can reproduce the same behaviour now with "plain" JavaScript debugging in Chrome:
  - create HTML5 sample project Responsive Rabbits
  - add line breakpoint to js/loadWelcome.js:9
  - run it in Chrome with NB integration
  - one debugger pauses on line 9, add new line breakpoint to line 10 and press Continue

=> Breakpoint on line 10 is ignored and debugger does not stops there. I have to close browser window and then re-run. Simple re-run without closing browser window does not help



Product Version: NetBeans IDE Dev (Build 201311280002)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 Vladimir Riha 2014-01-17 13:32:51 UTC
Seems to work fine now.


Product Version: NetBeans IDE Dev (Build 201401170001)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b122
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)


Product Version: NetBeans IDE Dev (Build 201401170001)
Java: 1.7.0_51; Java HotSpot(TM) Client VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 4 Vladimir Riha 2014-02-17 14:09:14 UTC
Still working for me, closing

Product Version: NetBeans IDE Dev (Build 201402170649)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)