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 232581 - JS debugger handles only "local" and "global" scopes
Summary: JS debugger handles only "local" and "global" scopes
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-11 22:16 UTC by David Konecny
Modified: 2013-07-16 02:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2013-07-11 22:16:19 UTC
and ignores other scopes like "closure". See. org.netbeans.modules.web.javascript.debugger.locals.VariablesModel.getVariables(). The Variables view should probably show all scopes available.

To test "closure" scope just define a function within a function, eg:

  function DepartmentController($scope, $routeParams, Shop, Cart) {
    function a() {
        var aa = "dddd";
        $scope.aaa = "aaa";
        Console.log("asss");
    }
    a();
  }

and put breakpoint for example at "Console.log..." line - the closure scope will list "$scope" and "Cart" variables etc.
Comment 1 Martin Entlicher 2013-07-15 12:13:31 UTC
Reproduced.
Comment 2 Martin Entlicher 2013-07-15 14:28:18 UTC
Fixed by changeset:   258464:c36213d71df9
http://hg.netbeans.org/web-main/rev/c36213d71df9
Comment 3 Quality Engineering 2013-07-16 02:38:43 UTC
Integrated into 'main-silver', will be available in build *201307152300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c36213d71df9
User: mentlicher@netbeans.org
Log: #232581: Additional variable scopes defined.