Peter Malmgren created NETBEANS-642:

             Summary: javascript debugger blindsides by being case-sensitive
                 Key: NETBEANS-642
             Project: NetBeans
          Issue Type: Bug
          Components: editor - Hints & Annotations, javascript - Debugger
    Affects Versions: 8.2
         Environment: Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.8.0_31
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.31-b07
            Reporter: Peter Malmgren

Could not debug javascript code from referenced .js file.
The code executes fine but would ignore breakpoints. 
The hint: "Unresolved breakpoint" during runtime almost .

  * Create a new Html5/javascript project.
  * In a new file named lowercase.js, insert: 
function hello(){

  * insert into index.html:
<script src='lowerCase.js'></script>

(it is important for this bug that 'C' in lowerCase.js is uppercase)
  * Put a breakpoint on it.
  * insert into index.html:

  * Put a breakpoint on it.
  * Run project with a browser with netbeans connector.

The problem should become apparent: The second breakpoint is ignored.

  Before executing the program: 
    * confirm that both breakpoints do not appear different to any other 
  While debugging: 
    * Confirm that there is no problem with the breakpoint in index.html. 
    * Confirm that the program ignores the breakpoint in lowercase.js.
    * Confirm that the second breakpoint has "Unresolved breakpoint: Not 
resolved/active at current time." as context.
    * Confirm that the program still executes lowercase.js by looking at the 
output of console.log("test"); in hello().

  When the program counter/current line is at the breakpoint in index.html, you 
can step through lowercase.js.
  You can still not place unbroken breakpoints in lowercase.js

  one of the following:
    * The debugger fails together with the browser and operating system i.e: 
not be case-sensitive in a Windows locale, be case-sensitive Linux locale.
    * Notify the developer that there is a reference error.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

For further information about the NetBeans mailing lists, visit:

Reply via email to