Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-642

javascript debugger blindsides by being case-sensitive

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.2
    • Fix Version/s: None
    • Labels:
      None
    • 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

      Description

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

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

      {     console.log("test"); }

        * 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:
      <script>hello()</script>

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

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

      ACTUAL:
        Before executing the program:
          * confirm that both breakpoints do not appear different to any other breakpoint.
        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

      EXPECTED:
        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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Peter-_- Peter Malmgren
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified