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 250786

Summary: Breakpoints in embedded JS in PHP file are ignored
Product: javascript Reporter: Vladimir Riha <vriha>
Component: DebuggerAssignee: Martin Entlicher <mentlicher>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 251531    
Bug Blocks:    
Attachments: webkit log
sample project

Description Vladimir Riha 2015-02-28 20:18:58 UTC
Created attachment 152298 [details]
webkit log

Please check the attached PHP project and add line breakpoints to index.php line 33 and run the project. The breakpoint is ignored. It works fine in HTML file or if I move the JS code to JS file but not in embedded JS in PHP file.


Thank you


Product Version: NetBeans IDE Dev (Build 201502260001)
Java: 1.7.0_75; Java HotSpot(TM) Client VM 24.75-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_75-b13
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2015-02-28 20:19:54 UTC
Created attachment 152299 [details]
sample project
Comment 2 Martin Entlicher 2015-03-30 12:42:20 UTC
Fixed by changeset:   285594:1f155bc084cd
http://hg.netbeans.org/web-main/rev/1f155bc084cd
Comment 3 Quality Engineering 2015-03-31 02:44:23 UTC
Integrated into 'main-silver', will be available in build *201503310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1f155bc084cd
User: mentlicher@netbeans.org
Log: #250786: Make Breakpoints to work in embedded JavaScript in PHP files.
Comment 4 Jiri Kovalsky 2015-03-31 11:19:48 UTC
Product Version: NetBeans IDE Dev (Build 201503310001)
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25
System: Linux version 3.13.0-24-generic running on amd64; UTF-8; en_US (nb)

Embedded JavaScript breakpoints now work fine in PHP files too. Thanks for the fix Martine!