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 229383 - Breakpoint in JavaScript file with parameter in URL is ignored
Summary: Breakpoint in JavaScript file with parameter in URL is ignored
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-06 06:32 UTC by Vladimir Riha
Modified: 2015-03-27 03:21 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (60.54 KB, application/x-compressed-tar)
2013-05-06 06:32 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-05-06 06:32:56 UTC
Created attachment 134126 [details]
sample project

Please download attached project, set server to external (Apache with PHP) and run app.html in Chrome with NB integration. Then set breakpoint to app/controller/IdentificationController.js, line 32 and in browser click on Connect button

=> breakpoint is not hit although code execution on line 32 was done. The reason is that ExtJS loads scripts with dynamic URL parameter to bypass browser caching, something like 


http://localhost/TamMobile/app/controller/IdentificationController.js?_dc=1367821150766

And the _dc changes on each page reload. The same happens with Chrome Developer Tools


Product Version: NetBeans IDE Dev (Build web-main-10436-on-20130503)
Updates: Updates available
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-41-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-08-01 07:40:23 UTC
Related problem is that I have "static" URL parameter

<script src="scripts/p3chart.js?v1"></script>

which I manually change only when deploying to production server. So when I'm debugging on my local machine, the URL remains the same all the time. However If I put line breakpoint there, it is not resolved (it is marked as inactive) and it doesn't work.
Comment 2 David Konecny 2013-08-22 01:39:42 UTC
I've seen a similar case in a CSS link and it was solved simply by stripping down the query part of URL.
Comment 3 Martin Entlicher 2015-03-26 16:21:20 UTC
Fixed by changeset:   285492:45e0feb32ee1
http://hg.netbeans.org/web-main/rev/45e0feb32ee1
Comment 4 Quality Engineering 2015-03-27 03:21:49 UTC
Integrated into 'main-silver', will be available in build *201503270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/45e0feb32ee1
User: mentlicher@netbeans.org
Log: #229383: Submit line breakpoints via urlRegex. This allows to hit breakpoints in URLs with query and reference parts.